(10.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (7.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateThings (20140428155742)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "account_id" integer, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140428155742"]]  (12.4ms) commit transaction Migrating to CreateMtdeviseAccounts (20150426071228)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "mtdevise_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150426071228"]]  (9.7ms) commit transaction Migrating to AddOwnerIdToMtdeviseAccounts (20150426115631)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "mtdevise_accounts" ADD "owner_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150426115631"]]  (9.1ms) commit transaction Migrating to CreateMtdeviseUsers (20150426115910)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "mtdevise_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150426115910"]]  (10.8ms) commit transaction Migrating to AddDeviseToMtdeviseUsers (20150426143800)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "mtdevise_users" ADD "encrypted_password" varchar DEFAULT '' NOT NULL  (0.2ms) ALTER TABLE "mtdevise_users" ADD "reset_password_token" varchar  (0.2ms) ALTER TABLE "mtdevise_users" ADD "reset_password_sent_at" datetime  (0.2ms) ALTER TABLE "mtdevise_users" ADD "remember_created_at" datetime  (0.2ms) ALTER TABLE "mtdevise_users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL  (0.2ms) ALTER TABLE "mtdevise_users" ADD "current_sign_in_at" datetime  (0.2ms) ALTER TABLE "mtdevise_users" ADD "last_sign_in_at" datetime  (0.2ms) ALTER TABLE "mtdevise_users" ADD "current_sign_in_ip" varchar  (0.2ms) ALTER TABLE "mtdevise_users" ADD "last_sign_in_ip" varchar  (2.2ms) CREATE UNIQUE INDEX "index_mtdevise_users_on_email" ON "mtdevise_users" ("email")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_email' AND type='index'  (0.2ms) CREATE UNIQUE INDEX "index_mtdevise_users_on_reset_password_token" ON "mtdevise_users" ("reset_password_token") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150426143800"]]  (11.1ms) commit transaction Migrating to AddSubdomainToMtdeviseAccounts (20150427200506)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "mtdevise_accounts" ADD "subdomain" varchar  (0.2ms) CREATE INDEX "index_mtdevise_accounts_on_subdomain" ON "mtdevise_accounts" ("subdomain") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150427200506"]]  (9.4ms) commit transaction Migrating to CreateMtdeviseMembers (20150428110406)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "mtdevise_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150428110406"]]  (10.4ms) commit transaction Migrating to AddConfirmedAtToUsers (20150504181830)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "mtdevise_users" ADD "confirmed_at" datetime  (0.3ms) ALTER TABLE "mtdevise_users" ADD "confirmation_token" varchar  (0.2ms) ALTER TABLE "mtdevise_users" ADD "confirmation_sent_at" datetime  (0.2ms) ALTER TABLE "mtdevise_users" ADD "unconfirmed_email" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150504181830"]]  (9.0ms) commit transaction Migrating to AddAuthenticationTokenToMtdeviseUsers (20150719125100)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "mtdevise_users" ADD "authentication_token" varchar  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_reset_password_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_email' AND type='index'   (0.2ms) CREATE INDEX "index_mtdevise_users_on_authentication_token" ON "mtdevise_users" ("authentication_token") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150719125100"]]  (7.8ms) commit transaction Migrating to AddFirstnameToMtdeviseAccounts (20151231043439)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "mtdevise_accounts" ADD "firstname" varchar  (0.3ms) ALTER TABLE "mtdevise_accounts" ADD "lastname" varchar  (0.3ms) ALTER TABLE "mtdevise_accounts" ADD "username" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151231043439"]]  (8.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_mtdevise_accounts_on_subdomain' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_accounts_on_subdomain' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_authentication_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_authentication_token' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_reset_password_token' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_mtdevise_users_on_email' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_mtdevise_users_on_email' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:38 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.8ms) Completed 200 OK in 8964ms (Views: 8947.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.8ms)  (13.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-09 23:00:47.748058"], ["updated_at", "2016-03-09 23:00:47.748058"]]  (12.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:00:47 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (12.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:00:48 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (18.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (16.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (15.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.4ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (12.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (12.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xUGgt4_yiQGhjcuQExdu"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$.EUAUrha084hijaYgTu7G.ggZNP15IJOZ5g1r/4ivFbvgej.c8.dK"], ["confirmed_at", "2016-03-09 23:01:50.609577"], ["authentication_token", "xUGgt4_yiQGhjcuQExdu"], ["created_at", "2016-03-09 23:01:50.697491"], ["updated_at", "2016-03-09 23:01:50.697491"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:50.726073"], ["updated_at", "2016-03-09 23:01:50.726073"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:50.771927"], ["updated_at", "2016-03-09 23:01:50.771927"]]  (12.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (92.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.7ms) Completed 200 OK in 435ms (Views: 411.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:51.254659"], ["current_sign_in_at", "2016-03-09 23:01:51.254659"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:51.255879"], ["id", 1]]  (12.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 39ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (6.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 22ms (Views: 16.0ms | ActiveRecord: 0.7ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ve8Gssu8mzWLbyPDNEi8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$ELRWWFIdz1Rzz3OCiLHLE.NZBZlfWfyuRu5OcEX0NyMG8MLZctAby"], ["confirmed_at", "2016-03-09 23:01:51.399289"], ["authentication_token", "Ve8Gssu8mzWLbyPDNEi8"], ["created_at", "2016-03-09 23:01:51.402544"], ["updated_at", "2016-03-09 23:01:51.402544"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:51.420656"], ["updated_at", "2016-03-09 23:01:51.420656"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:51.438072"], ["updated_at", "2016-03-09 23:01:51.438072"]]  (10.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8sfUiGG4NjyypzYDJkBB"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$/PhpFtDW/WnELv2jmV0qKePjJ9pohfwdJpq.G3r6uW0v4OMjmOPKW"], ["confirmed_at", "2016-03-09 23:01:51.614803"], ["authentication_token", "8sfUiGG4NjyypzYDJkBB"], ["created_at", "2016-03-09 23:01:51.618191"], ["updated_at", "2016-03-09 23:01:51.618191"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:51.655111"], ["current_sign_in_at", "2016-03-09 23:01:51.655111"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:51.656403"], ["id", 1]]  (12.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.2ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (8.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.0ms)  (8.2ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:51 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (12.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "G877WKiKTfWayK33ukgx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$RdZhE0Po2sbPDRH1CQ2/He57KHnuRyfF.qWBLCH3lzDpAs.1inQoq"], ["confirmed_at", "2016-03-09 23:01:52.023186"], ["authentication_token", "G877WKiKTfWayK33ukgx"], ["created_at", "2016-03-09 23:01:52.026046"], ["updated_at", "2016-03-09 23:01:52.026046"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:52.043193"], ["updated_at", "2016-03-09 23:01:52.043193"]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:52.063148"], ["updated_at", "2016-03-09 23:01:52.063148"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "y9hdfwmuqxzCRXxyEVhE"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$J6LXo1.2mnUPliURIIqUCuo6h0T8/cwruapFbr/5MGFpC8L61gQIW"], ["confirmed_at", "2016-03-09 23:01:52.078294"], ["authentication_token", "y9hdfwmuqxzCRXxyEVhE"], ["created_at", "2016-03-09 23:01:52.081948"], ["updated_at", "2016-03-09 23:01:52.081948"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 2], ["created_at", "2016-03-09 23:01:52.099635"], ["updated_at", "2016-03-09 23:01:52.099635"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:01:52.114705"], ["updated_at", "2016-03-09 23:01:52.114705"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-09 23:01:52.136734"], ["updated_at", "2016-03-09 23:01:52.136734"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-09 23:01:52.151290"], ["updated_at", "2016-03-09 23:01:52.151290"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:52.195730"], ["current_sign_in_at", "2016-03-09 23:01:52.195730"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:52.196921"], ["id", 2]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.2ms)  (12.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KSEVUJCvEWPec5gaeBAJ"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$Gk0dBC3RZBY9ckEtPWWewO/cI5PNm3mQ7JeMbxfH9CHJJriNYJqBq"], ["confirmed_at", "2016-03-09 23:01:52.334604"], ["authentication_token", "KSEVUJCvEWPec5gaeBAJ"], ["created_at", "2016-03-09 23:01:52.338273"], ["updated_at", "2016-03-09 23:01:52.338273"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:52.355594"], ["updated_at", "2016-03-09 23:01:52.355594"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:52.371202"], ["updated_at", "2016-03-09 23:01:52.371202"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-fSLB-djRGXPnRYN1ffE"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$V5TBNZotmD7HJdGq9epvXu2m1IPDVuGaIIQtjIoc1CLtESaPOt8e."], ["confirmed_at", "2016-03-09 23:01:52.386786"], ["authentication_token", "-fSLB-djRGXPnRYN1ffE"], ["created_at", "2016-03-09 23:01:52.390465"], ["updated_at", "2016-03-09 23:01:52.390465"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-09 23:01:52.407881"], ["updated_at", "2016-03-09 23:01:52.407881"]]  (12.0ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:01:52.425638"], ["updated_at", "2016-03-09 23:01:52.425638"]]  (15.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-09 23:01:52.445145"], ["updated_at", "2016-03-09 23:01:52.445145"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-09 23:01:52.456794"], ["updated_at", "2016-03-09 23:01:52.456794"]]  (11.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:52.500268"], ["current_sign_in_at", "2016-03-09 23:01:52.500268"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:52.501578"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (85.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 92ms (Views: 89.0ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-09 23:01:52 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (12.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "gThSJHLyHFhso84DUqpP"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "ea20fd6e742b1e26ce6ca0e3690195e84b68b5427b4e67fb5e7ced9cfef4a566"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$7Xi6febOLgcO8SHs5HJLOudoJwWN0bEBjJssMEH9vR8TB1zT73pPu"], ["authentication_token", "gThSJHLyHFhso84DUqpP"], ["created_at", "2016-03-09 23:01:52.761881"], ["updated_at", "2016-03-09 23:01:52.761881"], ["confirmation_token", "LFL4atoPboKcKe5gsCsY"], ["confirmation_sent_at", "2016-03-09 23:01:53.003771"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 297.1ms Sent mail to user@example.com (13.0ms) Date: Wed, 09 Mar 2016 23:01:53 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e0ab614f4f5_51e953133018573@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:53.331099"], ["updated_at", "2016-03-09 23:01:53.331099"]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:53.350640"], ["updated_at", "2016-03-09 23:01:53.350640"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-09 23:01:53.362670"], ["updated_at", "2016-03-09 23:01:53.363321"], ["id", 1]]  (9.8ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (8.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "VnMyLZ2V1xssx9HfwmsQ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$lndYasbBgU4fvuWYcU1.MOtUgQJEBbP/HsxpsvWSKWW5XXb3npzaW"], ["confirmed_at", "2016-03-09 23:01:53.499330"], ["authentication_token", "VnMyLZ2V1xssx9HfwmsQ"], ["created_at", "2016-03-09 23:01:53.502642"], ["updated_at", "2016-03-09 23:01:53.502642"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:53.520414"], ["updated_at", "2016-03-09 23:01:53.520414"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:53.537506"], ["updated_at", "2016-03-09 23:01:53.537506"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.3ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:53.574870"], ["current_sign_in_at", "2016-03-09 23:01:53.574870"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:53.575883"], ["id", 1]]  (12.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 13.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bXPv2gDaiW-KT_yoKbxu"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$FzJ3h8TPvN91olytaFW6K.R9m.KHzQ6l3mxfEY/TRkSO8mDCkUOYK"], ["confirmed_at", "2016-03-09 23:01:53.803115"], ["authentication_token", "bXPv2gDaiW-KT_yoKbxu"], ["created_at", "2016-03-09 23:01:53.806359"], ["updated_at", "2016-03-09 23:01:53.806359"]]  (11.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:53.847617"], ["current_sign_in_at", "2016-03-09 23:01:53.847617"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:53.848581"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:53 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 9.1ms | ActiveRecord: 1.2ms)  (11.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2yjvE2hmqN4JmbVjdcCy"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$kKB5EEwi6nWrqBn3Ch25i.ItlPzX409ulKdCC7NyPRguSh/CCI35G"], ["confirmed_at", "2016-03-09 23:01:54.067828"], ["authentication_token", "2yjvE2hmqN4JmbVjdcCy"], ["created_at", "2016-03-09 23:01:54.071121"], ["updated_at", "2016-03-09 23:01:54.071121"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:54.088505"], ["updated_at", "2016-03-09 23:01:54.088505"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:54.105329"], ["updated_at", "2016-03-09 23:01:54.105329"]]  (11.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 10.2ms | ActiveRecord: 1.4ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Qx8jJKDjz1MNxmKRywsQ"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "3c8098dfa60819bf021091068510138d06b92be93356f1e46d35775b02be3ff4"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$bAHrgDMkMtW.122jJkLZo.UCe2quvpOAJgEuLokh/z54FirrSdIwO"], ["authentication_token", "Qx8jJKDjz1MNxmKRywsQ"], ["created_at", "2016-03-09 23:01:54.316705"], ["updated_at", "2016-03-09 23:01:54.316705"], ["confirmation_token", "Etg3bAvijyYe8miApNc6"], ["confirmation_sent_at", "2016-03-09 23:01:54.317806"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.3ms Sent mail to mtdevise@example.com (2.4ms) Date: Wed, 09 Mar 2016 23:01:54 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e0ab624f91a_51e95313301867e@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:54.328037"], ["updated_at", "2016-03-09 23:01:54.328037"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:54.345667"], ["updated_at", "2016-03-09 23:01:54.345667"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-09 23:01:54.360048"], ["updated_at", "2016-03-09 23:01:54.360824"], ["id", 1]]  (12.5ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:54.379985"], ["current_sign_in_at", "2016-03-09 23:01:54.379985"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:54.380731"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 88ms (ActiveRecord: 52.8ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.3ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-09 23:01:54.496783"], ["updated_at", "2016-03-09 23:01:54.496783"]]  (11.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 9.9ms | ActiveRecord: 1.5ms)  (13.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 8.0ms | ActiveRecord: 1.1ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QFAkLzFso2cebhWaxerP"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$/ySXtpKSYeFnYjz9f9zOFeNtWLZyp7f4RCqcvYcoxncqVA22d78c."], ["confirmed_at", "2016-03-09 23:01:54.860227"], ["authentication_token", "QFAkLzFso2cebhWaxerP"], ["created_at", "2016-03-09 23:01:54.864442"], ["updated_at", "2016-03-09 23:01:54.864442"]]  (12.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:54.884598"], ["updated_at", "2016-03-09 23:01:54.884598"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:54.902314"], ["updated_at", "2016-03-09 23:01:54.902314"]]  (10.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:54 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test9"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test13@example.com"]] Completed 401 Unauthorized in 6ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "uL_enh9biqv21LBpCZvF"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$mHvxgwNCMTx0cpKG1bscyu9vgaumJu2VNRcHzkPfF7qEUpYwHD4qK"], ["confirmed_at", "2016-03-09 23:01:55.049845"], ["authentication_token", "uL_enh9biqv21LBpCZvF"], ["created_at", "2016-03-09 23:01:55.053345"], ["updated_at", "2016-03-09 23:01:55.053345"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:55.071309"], ["updated_at", "2016-03-09 23:01:55.071309"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:55.089127"], ["updated_at", "2016-03-09 23:01:55.089127"]]  (12.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jNRYtnbA7RyqPwWUTjTo"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$TD.5jpl7Ng3DTNrJbt6kRuk74dGTSy/iItYkY8cUsQY4gpm6BP16G"], ["confirmed_at", "2016-03-09 23:01:55.105977"], ["authentication_token", "jNRYtnbA7RyqPwWUTjTo"], ["created_at", "2016-03-09 23:01:55.109342"], ["updated_at", "2016-03-09 23:01:55.109342"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-09 23:01:55.126137"], ["updated_at", "2016-03-09 23:01:55.126137"]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:01:55.148892"], ["updated_at", "2016-03-09 23:01:55.148892"]]  (11.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test10"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test15@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eqd4S8PVfonN3smFp9B4"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$KlyH/0S8EGJElYvtchntv.HUSqlx5gsDvzOE4iujzxJUNa47wS7k2"], ["confirmed_at", "2016-03-09 23:01:55.275914"], ["authentication_token", "eqd4S8PVfonN3smFp9B4"], ["created_at", "2016-03-09 23:01:55.278972"], ["updated_at", "2016-03-09 23:01:55.278972"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:55.294911"], ["updated_at", "2016-03-09 23:01:55.294911"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:55.308437"], ["updated_at", "2016-03-09 23:01:55.308437"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test12"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:55.350590"], ["current_sign_in_at", "2016-03-09 23:01:55.350590"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:55.351524"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://test12.example.com/ Completed 302 Found in 20ms (ActiveRecord: 10.8ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (8.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (15.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "98H24isym5pSDtxmRRqw"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$1DqhZQPezgQyJ5B9YMh2IevjckOz7xa0J9XKIQqWOhobXtD8UZ8Z2"], ["confirmed_at", "2016-03-09 23:01:55.452017"], ["authentication_token", "98H24isym5pSDtxmRRqw"], ["created_at", "2016-03-09 23:01:55.454878"], ["updated_at", "2016-03-09 23:01:55.454878"]]  (9.6ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:55.470960"], ["updated_at", "2016-03-09 23:01:55.470960"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:55.485269"], ["updated_at", "2016-03-09 23:01:55.485269"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (6.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "fsY1H6Zw1KDqvVWEGtay"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$juF3d7VVwMT09HS/cUh67OVdWWZk6jyHwnWyf1jxW/yyuqUArnlfS"], ["confirmed_at", "2016-03-09 23:01:55.639057"], ["authentication_token", "fsY1H6Zw1KDqvVWEGtay"], ["created_at", "2016-03-09 23:01:55.642968"], ["updated_at", "2016-03-09 23:01:55.642968"]]  (9.7ms) commit transaction  (0.6ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:55.659197"], ["updated_at", "2016-03-09 23:01:55.659197"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:55.673494"], ["updated_at", "2016-03-09 23:01:55.673494"]]  (11.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:55.710013"], ["current_sign_in_at", "2016-03-09 23:01:55.710013"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:55.710980"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 6.1ms | ActiveRecord: 1.1ms)  (11.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "L6yLPuR7n8zTksbJky7L"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$u6kd8SzPNBT7Q3IQkH/N9.PDlqe4N8QiA0klxwj.bEC1pk5NeFHhm"], ["confirmed_at", "2016-03-09 23:01:55.847614"], ["authentication_token", "L6yLPuR7n8zTksbJky7L"], ["created_at", "2016-03-09 23:01:55.851091"], ["updated_at", "2016-03-09 23:01:55.851091"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:55.866972"], ["updated_at", "2016-03-09 23:01:55.866972"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:55.880684"], ["updated_at", "2016-03-09 23:01:55.880684"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test20@example.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:55.922774"], ["current_sign_in_at", "2016-03-09 23:01:55.922774"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:55.924034"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:55 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 6.8ms | ActiveRecord: 1.6ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yczr3A1vx5s7__vAKEDr"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$rVgohkvU5zpmj3Qrgr0th.O9QNpz1y.87SqoU1mzTx0/a1TWSVDCa"], ["confirmed_at", "2016-03-09 23:01:56.066579"], ["authentication_token", "yczr3A1vx5s7__vAKEDr"], ["created_at", "2016-03-09 23:01:56.070223"], ["updated_at", "2016-03-09 23:01:56.070223"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:56.086965"], ["updated_at", "2016-03-09 23:01:56.086965"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:56.102729"], ["updated_at", "2016-03-09 23:01:56.102729"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test22@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:56.143947"], ["current_sign_in_at", "2016-03-09 23:01:56.143947"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:56.145190"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test16"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 6.8ms | ActiveRecord: 1.1ms)  (8.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QGicrbBYq-Fn5DDwhxof"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$hFN2YVxzuy9xJILVwpTDZuNXBqORS2uBQ0pyvG9pqMV2shWoNT8uG"], ["confirmed_at", "2016-03-09 23:01:56.287239"], ["authentication_token", "QGicrbBYq-Fn5DDwhxof"], ["created_at", "2016-03-09 23:01:56.290399"], ["updated_at", "2016-03-09 23:01:56.290399"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-09 23:01:56.306648"], ["updated_at", "2016-03-09 23:01:56.306648"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:01:56.319287"], ["updated_at", "2016-03-09 23:01:56.319287"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:01:56.355523"], ["current_sign_in_at", "2016-03-09 23:01:56.355523"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:01:56.356705"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-09 23:01:56.407667"], ["updated_at", "2016-03-09 23:01:56.407667"]]  (10.3ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-09 23:01:56.425220"], ["updated_at", "2016-03-09 23:01:56.425220"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-09 23:01:56.440143"], ["id", 2]]  (9.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 49ms (ActiveRecord: 31.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:01:56 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (59.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.7ms) Completed 200 OK in 307ms (Views: 291.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:02:23 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:02:23 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-09 23:02:23.966056"], ["updated_at", "2016-03-09 23:02:23.966056"]]  (10.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 62ms (Views: 60.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (15.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:02:24 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (8.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:27 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 18ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:27 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (8.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.7ms) Completed 200 OK in 450ms (Views: 443.8ms | ActiveRecord: 0.0ms)  (20.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:28 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.3ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (213.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 334ms (Views: 226.3ms | ActiveRecord: 0.6ms)  (13.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (20.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 66ms (Views: 30.9ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (16.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bsgstdRZchha5gZ1eN1R"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$BNSziU7IEaQ8kPwjnRL0kufM8hvv8u.cFO/VsggET9mWELVM/o.0."], ["confirmed_at", "2016-03-09 23:06:28.956694"], ["authentication_token", "bsgstdRZchha5gZ1eN1R"], ["created_at", "2016-03-09 23:06:28.981577"], ["updated_at", "2016-03-09 23:06:28.981577"]]  (10.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:28 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:29.028756"], ["current_sign_in_at", "2016-03-09 23:06:29.028756"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:29.029757"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 40ms (ActiveRecord: 11.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (7.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 16.8ms | ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms)  (21.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_Hs6N6rRskLw6HNYihui"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$b14mFK0AKI7meKMwXnY/aulw1v1YU9is5/h0JdSGauCm3UOzrC52G"], ["confirmed_at", "2016-03-09 23:06:29.250015"], ["authentication_token", "_Hs6N6rRskLw6HNYihui"], ["created_at", "2016-03-09 23:06:29.253320"], ["updated_at", "2016-03-09 23:06:29.253320"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:29.298840"], ["current_sign_in_at", "2016-03-09 23:06:29.298840"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:29.300415"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 13.1ms | ActiveRecord: 1.5ms)  (17.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (15.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-09 23:06:29.550587"], ["updated_at", "2016-03-09 23:06:29.550587"]]  (15.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (3.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (9.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 130ms (Views: 109.8ms | ActiveRecord: 1.8ms)  (18.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (20.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (17.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (19.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:29 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "VztfavRxKNadf8PAJzwX"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "f88cd9fa167c0eeb1dea1f50e93dcfc8bd758c0d1ad8070651d32c28b47d1a91"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$JBuiEMM1CiBquJBsHcsJpuQbtnXE6ij43LTSZeJy3bY06bch2Svaa"], ["authentication_token", "VztfavRxKNadf8PAJzwX"], ["created_at", "2016-03-09 23:06:29.914801"], ["updated_at", "2016-03-09 23:06:29.914801"], ["confirmation_token", "g8NzaYm_9sz6z11QHiFh"], ["confirmation_sent_at", "2016-03-09 23:06:30.132854"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 412.3ms Sent mail to mtdevise@example.com (36.1ms) Date: Wed, 09 Mar 2016 23:06:30 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e0ac7690ed6_5216c7f33039822@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:30.604486"], ["updated_at", "2016-03-09 23:06:30.604486"]]  (20.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:30.667642"], ["updated_at", "2016-03-09 23:06:30.667642"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-09 23:06:30.683695"], ["updated_at", "2016-03-09 23:06:30.684990"], ["id", 1]]  (10.7ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:30.704703"], ["current_sign_in_at", "2016-03-09 23:06:30.704703"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:30.705727"], ["id", 1]]  (14.0ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 822ms (ActiveRecord: 63.2ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:30 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 19ms (Views: 16.2ms | ActiveRecord: 0.4ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "w3T7swtwB-wFVxHyJbqD"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$8JTojl399IBBERBgLcur4um6J0J/dOxUq/CeATm1mYBR6S5hiHDhK"], ["confirmed_at", "2016-03-09 23:06:30.826376"], ["authentication_token", "w3T7swtwB-wFVxHyJbqD"], ["created_at", "2016-03-09 23:06:30.830522"], ["updated_at", "2016-03-09 23:06:30.830522"]]  (13.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:30.851138"], ["updated_at", "2016-03-09 23:06:30.851138"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:30.866744"], ["updated_at", "2016-03-09 23:06:30.866744"]]  (10.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (7.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 8.4ms | ActiveRecord: 1.6ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 8.9ms | ActiveRecord: 2.0ms)  (12.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eNm3shEsyLYRnpjCWG5_"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$i.CrGZHcZp6O0/vilgDQqOfwE2iKC4jm/d.a8xZhaRhe6rlZWmSzq"], ["confirmed_at", "2016-03-09 23:06:31.187804"], ["authentication_token", "eNm3shEsyLYRnpjCWG5_"], ["created_at", "2016-03-09 23:06:31.190909"], ["updated_at", "2016-03-09 23:06:31.190909"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:31.206189"], ["updated_at", "2016-03-09 23:06:31.206189"]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:31.218200"], ["updated_at", "2016-03-09 23:06:31.218200"]]  (7.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:31.251334"], ["current_sign_in_at", "2016-03-09 23:06:31.251334"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:31.252339"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.3ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wcqejWoFUdzssfXuSXdi"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$AwUw9vHrtvjVnx/8jP4qlOCfLh33CQrLmh4/hIk7IozfdAeZEDuXm"], ["confirmed_at", "2016-03-09 23:06:31.358586"], ["authentication_token", "wcqejWoFUdzssfXuSXdi"], ["created_at", "2016-03-09 23:06:31.362420"], ["updated_at", "2016-03-09 23:06:31.362420"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:31.378520"], ["updated_at", "2016-03-09 23:06:31.378520"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:31.390785"], ["updated_at", "2016-03-09 23:06:31.390785"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (11.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-phczP5hfFh7EHSGxsCr"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$u5Pl4MA0I1KowpSrpWY/k.QNc6AitFphOcpGz1CkoGrk2zCg6Ui5K"], ["confirmed_at", "2016-03-09 23:06:31.547761"], ["authentication_token", "-phczP5hfFh7EHSGxsCr"], ["created_at", "2016-03-09 23:06:31.550954"], ["updated_at", "2016-03-09 23:06:31.550954"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:31.566448"], ["updated_at", "2016-03-09 23:06:31.566448"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:31.578111"], ["updated_at", "2016-03-09 23:06:31.578111"]]  (7.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.2ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:31.610778"], ["current_sign_in_at", "2016-03-09 23:06:31.610778"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:31.611795"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-09 23:06:31.671527"], ["updated_at", "2016-03-09 23:06:31.671527"]]  (10.2ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-09 23:06:31.692210"], ["updated_at", "2016-03-09 23:06:31.692210"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-09 23:06:31.709242"], ["id", 2]]  (9.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 55ms (ActiveRecord: 32.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_3cHz-7e8tF2Cxa_3i3A"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$OsQ/NJqCrif6wjkjNbHtJOBp3igJobpT/Ar8phdM6f7.IbhHFomUK"], ["confirmed_at", "2016-03-09 23:06:31.803732"], ["authentication_token", "_3cHz-7e8tF2Cxa_3i3A"], ["created_at", "2016-03-09 23:06:31.806823"], ["updated_at", "2016-03-09 23:06:31.806823"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:31.821541"], ["updated_at", "2016-03-09 23:06:31.821541"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:31.836833"], ["updated_at", "2016-03-09 23:06:31.836833"]]  (10.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.3ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:31.874951"], ["current_sign_in_at", "2016-03-09 23:06:31.874951"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:31.876981"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.5ms | ActiveRecord: 1.3ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eCgmQ4pYzGUguSYj52cT"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$TuMx7Of4ZYz7CT/lul79gOuYz3VvbpAK49Kjn715RnbXNlSBhPgOi"], ["confirmed_at", "2016-03-09 23:06:32.088405"], ["authentication_token", "eCgmQ4pYzGUguSYj52cT"], ["created_at", "2016-03-09 23:06:32.093092"], ["updated_at", "2016-03-09 23:06:32.093092"]]  (12.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:32.112593"], ["updated_at", "2016-03-09 23:06:32.112593"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:32.128914"], ["updated_at", "2016-03-09 23:06:32.128914"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:32.168013"], ["current_sign_in_at", "2016-03-09 23:06:32.168013"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:32.169099"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 6.2ms | ActiveRecord: 1.3ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zsE_xD8D-3hATdtXhtyZ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$3R/jHcnIXPn7DrOl1zJfz.3ma7NxXWUXhU8rU4kW6ROZy0Ktnul86"], ["confirmed_at", "2016-03-09 23:06:32.299835"], ["authentication_token", "zsE_xD8D-3hATdtXhtyZ"], ["created_at", "2016-03-09 23:06:32.303870"], ["updated_at", "2016-03-09 23:06:32.303870"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:32.321017"], ["updated_at", "2016-03-09 23:06:32.321017"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:32.337057"], ["updated_at", "2016-03-09 23:06:32.337057"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:32.378165"], ["current_sign_in_at", "2016-03-09 23:06:32.378165"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:32.379297"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test7"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 6.3ms | ActiveRecord: 1.3ms)  (11.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "pywyzusBo2UqdyYymy-z"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$hWza7FVjNj5aNeL.v9tQQOvON7xuoIi.We3vPppmNXUn7U6aALBcq"], ["confirmed_at", "2016-03-09 23:06:32.556436"], ["authentication_token", "pywyzusBo2UqdyYymy-z"], ["created_at", "2016-03-09 23:06:32.560327"], ["updated_at", "2016-03-09 23:06:32.560327"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:32.575280"], ["updated_at", "2016-03-09 23:06:32.575280"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:32.588585"], ["updated_at", "2016-03-09 23:06:32.588585"]]  (8.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test8"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test13@example.com"]] Completed 401 Unauthorized in 6ms (ActiveRecord: 0.7ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (17.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vx9MD6asMK8yduCbkwL9"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$zNqZLL/mjto5E74mUSzJh.r.1lCvwL6kyD3aMgRw9ieCXORugHZha"], ["confirmed_at", "2016-03-09 23:06:32.731426"], ["authentication_token", "vx9MD6asMK8yduCbkwL9"], ["created_at", "2016-03-09 23:06:32.734400"], ["updated_at", "2016-03-09 23:06:32.734400"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:32.750687"], ["updated_at", "2016-03-09 23:06:32.750687"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:32.762517"], ["updated_at", "2016-03-09 23:06:32.762517"]]  (6.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ae7zCXcx51C2jsa68PV_"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$56af5xpJE0VkB/NI9DaiFO9y1sPSwoen.UUc8PN4Xr09EuKH0hR5C"], ["confirmed_at", "2016-03-09 23:06:32.773169"], ["authentication_token", "ae7zCXcx51C2jsa68PV_"], ["created_at", "2016-03-09 23:06:32.775604"], ["updated_at", "2016-03-09 23:06:32.775604"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 2], ["created_at", "2016-03-09 23:06:32.790348"], ["updated_at", "2016-03-09 23:06:32.790348"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:06:32.802024"], ["updated_at", "2016-03-09 23:06:32.802024"]]  (11.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test9"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test15@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mZ_xfhc1H57Vz8CaxQvy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$TqnoVrQ84tPeecK6XL7DAutnbmUXnuA4.ZmIHmkfJNH1BYce8cXAq"], ["confirmed_at", "2016-03-09 23:06:32.935990"], ["authentication_token", "mZ_xfhc1H57Vz8CaxQvy"], ["created_at", "2016-03-09 23:06:32.939273"], ["updated_at", "2016-03-09 23:06:32.939273"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:32.955066"], ["updated_at", "2016-03-09 23:06:32.955066"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:32.968843"], ["updated_at", "2016-03-09 23:06:32.968843"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:32 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test11"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vTJWz8GB6eAgGiwMMQ4E"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$PnMr2M9N1GqVzfz26I6cpO69JzG7U7XIeOGDL3CBY5.kt4zgjIEw2"], ["confirmed_at", "2016-03-09 23:06:33.095953"], ["authentication_token", "vTJWz8GB6eAgGiwMMQ4E"], ["created_at", "2016-03-09 23:06:33.100372"], ["updated_at", "2016-03-09 23:06:33.100372"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:33.117936"], ["updated_at", "2016-03-09 23:06:33.117936"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:33.132599"], ["updated_at", "2016-03-09 23:06:33.132599"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test12"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:33.179281"], ["current_sign_in_at", "2016-03-09 23:06:33.179281"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:33.180466"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://test12.example.com/ Completed 302 Found in 23ms (ActiveRecord: 12.6ms) Started GET "/" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yif6TDxB6y1nm49tTyKx"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$qhr0zv6dgBLAp32mIZd4UuJpVKdxXturiAWmf5NlasEK51kvDmRtq"], ["confirmed_at", "2016-03-09 23:06:33.324796"], ["authentication_token", "yif6TDxB6y1nm49tTyKx"], ["created_at", "2016-03-09 23:06:33.328341"], ["updated_at", "2016-03-09 23:06:33.328341"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:33.345144"], ["updated_at", "2016-03-09 23:06:33.345144"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:33.358417"], ["updated_at", "2016-03-09 23:06:33.358417"]]  (7.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:33.391666"], ["current_sign_in_at", "2016-03-09 23:06:33.391666"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:33.392658"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.4ms)  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (27.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_977mSkTHZugks4oHJ41"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$pW/0BjZbr.QEf4i1iPODtuO9yVdx1jkCdC38UhcvqooIXtYMFi4Ou"], ["confirmed_at", "2016-03-09 23:06:33.723379"], ["authentication_token", "_977mSkTHZugks4oHJ41"], ["created_at", "2016-03-09 23:06:33.727411"], ["updated_at", "2016-03-09 23:06:33.727411"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:33.745189"], ["updated_at", "2016-03-09 23:06:33.745189"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:33.760290"], ["updated_at", "2016-03-09 23:06:33.760290"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hXF7UMhpfH5nBXVZUCrx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$F9AhEURx2J86eATKLBFWD.enK2oppX1GUevR/frb41pepiLWVHcyK"], ["confirmed_at", "2016-03-09 23:06:33.773807"], ["authentication_token", "hXF7UMhpfH5nBXVZUCrx"], ["created_at", "2016-03-09 23:06:33.776403"], ["updated_at", "2016-03-09 23:06:33.776403"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-09 23:06:33.790743"], ["updated_at", "2016-03-09 23:06:33.790743"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:06:33.805453"], ["updated_at", "2016-03-09 23:06:33.805453"]]  (7.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-09 23:06:33.823962"], ["updated_at", "2016-03-09 23:06:33.823962"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-09 23:06:33.836819"], ["updated_at", "2016-03-09 23:06:33.836819"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:33.873635"], ["current_sign_in_at", "2016-03-09 23:06:33.873635"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:33.874573"], ["id", 2]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-09 23:06:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.9ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ymseg2FXJ9TevqSJazzc"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$S/2.jFV.J8/GRsljNdK7lOYaOYR04GwPLMg2KqOI4dFjxK1vP22Qe"], ["confirmed_at", "2016-03-09 23:06:33.999079"], ["authentication_token", "ymseg2FXJ9TevqSJazzc"], ["created_at", "2016-03-09 23:06:34.003283"], ["updated_at", "2016-03-09 23:06:34.003283"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:34.023175"], ["updated_at", "2016-03-09 23:06:34.023175"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:34.037640"], ["updated_at", "2016-03-09 23:06:34.037640"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kjxLdnuzyTEJcKfeEjW4"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$K1p7p5OiJZ62Q6HBMjYOxOKiPBnG4PNN7F8f5apI.Kzyv61uuItGy"], ["confirmed_at", "2016-03-09 23:06:34.053094"], ["authentication_token", "kjxLdnuzyTEJcKfeEjW4"], ["created_at", "2016-03-09 23:06:34.055740"], ["updated_at", "2016-03-09 23:06:34.055740"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-09 23:06:34.070854"], ["updated_at", "2016-03-09 23:06:34.070854"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-09 23:06:34.084289"], ["updated_at", "2016-03-09 23:06:34.084289"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-09 23:06:34.095529"], ["updated_at", "2016-03-09 23:06:34.095529"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-09 23:06:34.106262"], ["updated_at", "2016-03-09 23:06:34.106262"]]  (7.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-09 23:06:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-09 23:06:34.138686"], ["current_sign_in_at", "2016-03-09 23:06:34.138686"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-09 23:06:34.139794"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-09 23:06:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-09 23:06:34 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (8.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yCgHsk6og-X75ys2hNJH"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "e3c53afe65e56e3ea63bdaa23c68494574685fd2721d2441be1fc66af7a67e24"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$TvXUovffbAw41oSLW04G4uB7COIFk63.niX6ej1CXesrutH1S5RgO"], ["authentication_token", "yCgHsk6og-X75ys2hNJH"], ["created_at", "2016-03-09 23:06:34.298427"], ["updated_at", "2016-03-09 23:06:34.298427"], ["confirmation_token", "7qSuBgZxmL_mcqzFo_dz"], ["confirmation_sent_at", "2016-03-09 23:06:34.299495"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.2ms Sent mail to user@example.com (2.5ms) Date: Wed, 09 Mar 2016 23:06:34 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e0ac7a4b43a_5216c7f33039928@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-09 23:06:34.310065"], ["updated_at", "2016-03-09 23:06:34.310065"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-09 23:06:34.326397"], ["updated_at", "2016-03-09 23:06:34.326397"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-09 23:06:34.338650"], ["updated_at", "2016-03-09 23:06:34.339273"], ["id", 1]]  (9.5ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (13.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (26.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (9.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.8ms) Completed 200 OK in 10447ms (Views: 10423.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:19:21 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.8ms)  (17.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:21 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:19:21 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.4ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-10 23:19:22.005159"], ["updated_at", "2016-03-10 23:19:22.005159"]]  (15.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (41.5ms) Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::AccountsController#new as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (10.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:19:22 +0000 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (12.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:24 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 21ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:24 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (248.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (57.5ms) Completed 500 Internal Server Error in 795ms (ActiveRecord: 3.4ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "SBPyomvRsYqcjwxXBiVc"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$hSQSq.I2hzRUF.uAZGHhMuN8JyuhsntZDt3gyVtu6F4DZwGbvV8gy"], ["confirmed_at", "2016-03-10 23:33:25.549234"], ["authentication_token", "SBPyomvRsYqcjwxXBiVc"], ["created_at", "2016-03-10 23:33:25.617383"], ["updated_at", "2016-03-10 23:33:25.617383"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:25.652449"], ["updated_at", "2016-03-10 23:33:25.652449"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:25.718689"], ["updated_at", "2016-03-10 23:33:25.718689"]]  (10.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:25 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:25 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:25.772169"], ["current_sign_in_at", "2016-03-10 23:33:25.772169"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:25.773373"], ["id", 1]]  (27.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 51ms (ActiveRecord: 28.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:25 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (11.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (77.8ms) Completed 500 Internal Server Error in 111ms (ActiveRecord: 0.8ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (17.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ov8uS_nFUd3qSSmz2csY"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "0f85abc7a5facdfc7488144389d01cab2e7baa4808c3d1626787bea4cfda534c"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$2tTBftQ9jiZvKuTA1oqp.OH/JwhxqAQuGrW1rdIL.a/2oIF/b577O"], ["authentication_token", "ov8uS_nFUd3qSSmz2csY"], ["created_at", "2016-03-10 23:33:26.062408"], ["updated_at", "2016-03-10 23:33:26.062408"], ["confirmation_token", "iQsMAvDMKsejTrBmogk4"], ["confirmation_sent_at", "2016-03-10 23:33:26.266974"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (2.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 446.1ms Sent mail to user@example.com (40.1ms) Date: Thu, 10 Mar 2016 23:33:26 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e20446bae11_81b10d70f45757d@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:26.780498"], ["updated_at", "2016-03-10 23:33:26.780498"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:26.796701"], ["updated_at", "2016-03-10 23:33:26.796701"]]  (30.2ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:33:26.828658"], ["updated_at", "2016-03-10 23:33:26.829516"], ["id", 1]]  (8.6ms) commit transaction Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (23.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FADW4KaEQx2aNQioJdmj"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$UXGaC167P.vChBki1hlMvej8Yr/pcECVp6hpyfmUvVYGh0fW4PYMS"], ["confirmed_at", "2016-03-10 23:33:26.983809"], ["authentication_token", "FADW4KaEQx2aNQioJdmj"], ["created_at", "2016-03-10 23:33:26.986811"], ["updated_at", "2016-03-10 23:33:26.986811"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:27.002751"], ["updated_at", "2016-03-10 23:33:27.002751"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:27.016935"], ["updated_at", "2016-03-10 23:33:27.016935"]]  (16.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yNnb3xkbsE7SVr4rFb45"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$.T3OEU68pS3LB0mSrgDjGOZfNx8PtUliVVZgi5QfojQC9v5bs8Ei6"], ["confirmed_at", "2016-03-10 23:33:27.037389"], ["authentication_token", "yNnb3xkbsE7SVr4rFb45"], ["created_at", "2016-03-10 23:33:27.040179"], ["updated_at", "2016-03-10 23:33:27.040179"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 2], ["created_at", "2016-03-10 23:33:27.055047"], ["updated_at", "2016-03-10 23:33:27.055047"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:33:27.068049"], ["updated_at", "2016-03-10 23:33:27.068049"]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:33:27.088610"], ["updated_at", "2016-03-10 23:33:27.088610"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:33:27.100278"], ["updated_at", "2016-03-10 23:33:27.100278"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:27.138518"], ["current_sign_in_at", "2016-03-10 23:33:27.138518"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:27.139465"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (49.0ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 0.3ms)  (10.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GixQQHi8JyQ5uVvx5xgh"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$1Bn30J0MvHxKn1WrCEpSneAcUgWaRhVTupA5UzXQ2InrjNXA.dygS"], ["confirmed_at", "2016-03-10 23:33:27.295162"], ["authentication_token", "GixQQHi8JyQ5uVvx5xgh"], ["created_at", "2016-03-10 23:33:27.299226"], ["updated_at", "2016-03-10 23:33:27.299226"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:27.315831"], ["updated_at", "2016-03-10 23:33:27.315831"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:27.330245"], ["updated_at", "2016-03-10 23:33:27.330245"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4dzPBJgoEV96v7vuU59b"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$K/7pRjHIZQ/LoAuxB4Dme.dZiGxEKt1T6MIDNKSK2/JqThC.QLOHu"], ["confirmed_at", "2016-03-10 23:33:27.345274"], ["authentication_token", "4dzPBJgoEV96v7vuU59b"], ["created_at", "2016-03-10 23:33:27.348559"], ["updated_at", "2016-03-10 23:33:27.348559"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-10 23:33:27.363195"], ["updated_at", "2016-03-10 23:33:27.363195"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:33:27.377138"], ["updated_at", "2016-03-10 23:33:27.377138"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:33:27.389306"], ["updated_at", "2016-03-10 23:33:27.389306"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:33:27.401338"], ["updated_at", "2016-03-10 23:33:27.401338"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:27.442191"], ["current_sign_in_at", "2016-03-10 23:33:27.442191"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:27.443101"], ["id", 2]]  (9.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (51.0ms) Completed 500 Internal Server Error in 58ms (ActiveRecord: 0.4ms)  (8.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2m4Qdyepg96_GsKbxJtG"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$xoaKw6CMDbB50HGmUKN6Fuak0ubPZ486jCc1aXjNZo0MIy2tCeubq"], ["confirmed_at", "2016-03-10 23:33:27.631119"], ["authentication_token", "2m4Qdyepg96_GsKbxJtG"], ["created_at", "2016-03-10 23:33:27.633887"], ["updated_at", "2016-03-10 23:33:27.633887"]]  (7.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:27.646454"], ["updated_at", "2016-03-10 23:33:27.646454"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:27.657833"], ["updated_at", "2016-03-10 23:33:27.657833"]]  (11.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (56.3ms) Completed 500 Internal Server Error in 64ms (ActiveRecord: 0.2ms)  (8.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RewCXzz25WxFByochsGB"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$gBRRfXnG5zIUjhsuCmtkKuk/yFyQWhKDP9UqePPkzCsvtDUdGZZ9q"], ["confirmed_at", "2016-03-10 23:33:27.826570"], ["authentication_token", "RewCXzz25WxFByochsGB"], ["created_at", "2016-03-10 23:33:27.829901"], ["updated_at", "2016-03-10 23:33:27.829901"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:27.845702"], ["updated_at", "2016-03-10 23:33:27.845702"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:27.860139"], ["updated_at", "2016-03-10 23:33:27.860139"]]  (9.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "E2nMpDH9L9YoJ4DoxC89"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$eEVIEZ6gN/EL4K1eb41ZfehOOvHqkkTKMp2rXtAD3aqQiwOgu2jT."], ["confirmed_at", "2016-03-10 23:33:27.872799"], ["authentication_token", "E2nMpDH9L9YoJ4DoxC89"], ["created_at", "2016-03-10 23:33:27.875748"], ["updated_at", "2016-03-10 23:33:27.875748"]]  (12.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-10 23:33:27.896928"], ["updated_at", "2016-03-10 23:33:27.896928"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:33:27.914224"], ["updated_at", "2016-03-10 23:33:27.914224"]]  (10.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:27 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (14.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (17.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (54.3ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.1ms)  (14.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "x5igPJD1EBgP6TXv94pC"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$o/oi3kNNdiq2Mi7IR03ZyOjpe8gG61ArbZPvHMkjWaYX9zBU2R6PS"], ["confirmed_at", "2016-03-10 23:33:28.108085"], ["authentication_token", "x5igPJD1EBgP6TXv94pC"], ["created_at", "2016-03-10 23:33:28.111359"], ["updated_at", "2016-03-10 23:33:28.111359"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.6ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:28.128892"], ["updated_at", "2016-03-10 23:33:28.128892"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:28.147358"], ["updated_at", "2016-03-10 23:33:28.147358"]]  (10.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (74.5ms) Completed 500 Internal Server Error in 87ms (ActiveRecord: 0.3ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "69vbyr8buHyGczicq3Hs"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$R5wEkSpGQJnMLhcq98XFl.OpPVvWLkUBBvVCWWc0FpZfInr81KUay"], ["confirmed_at", "2016-03-10 23:33:28.336711"], ["authentication_token", "69vbyr8buHyGczicq3Hs"], ["created_at", "2016-03-10 23:33:28.340895"], ["updated_at", "2016-03-10 23:33:28.340895"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:28.357125"], ["updated_at", "2016-03-10 23:33:28.357125"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:28.370664"], ["updated_at", "2016-03-10 23:33:28.370664"]]  (7.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (50.0ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.1ms)  (9.8ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (18.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "orx4d5P8We5nJzmRVkBt"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$Uk2eafriYQiub3AqZl59c.JZ8PT9yh0D2yMvLhaTI81Kl39YpdMtu"], ["confirmed_at", "2016-03-10 23:33:28.692971"], ["authentication_token", "orx4d5P8We5nJzmRVkBt"], ["created_at", "2016-03-10 23:33:28.697650"], ["updated_at", "2016-03-10 23:33:28.697650"]]  (10.5ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:28.716695"], ["updated_at", "2016-03-10 23:33:28.716695"]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:28.736636"], ["updated_at", "2016-03-10 23:33:28.736636"]]  (15.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:28.792303"], ["current_sign_in_at", "2016-03-10 23:33:28.792303"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:28.793619"], ["id", 1]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 11.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:28 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (58.9ms) Completed 500 Internal Server Error in 67ms (ActiveRecord: 0.6ms)  (12.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (3.0ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KGA1DiXFQeGD-xeivrL9"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$RqCSE84/S3vexv6VYIeC0O2XllxQ6vx1JApSt3wAwhmqaA11Tb9AG"], ["confirmed_at", "2016-03-10 23:33:28.960992"], ["authentication_token", "KGA1DiXFQeGD-xeivrL9"], ["created_at", "2016-03-10 23:33:28.968274"], ["updated_at", "2016-03-10 23:33:28.968274"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.8ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:28.989945"], ["updated_at", "2016-03-10 23:33:28.989945"]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:29.008041"], ["updated_at", "2016-03-10 23:33:29.008041"]]  (16.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:29.062009"], ["current_sign_in_at", "2016-03-10 23:33:29.062009"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:29.063583"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 12.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (62.6ms) Completed 500 Internal Server Error in 72ms (ActiveRecord: 0.7ms)  (13.1ms) DELETE FROM "things";  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "y7qnwdgCCxfC39epFnXT"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$YLUu9J4hESL6cXzwJwLpr.troOVALohSeMUBNCgKloTfenPL5pKOO"], ["confirmed_at", "2016-03-10 23:33:29.246552"], ["authentication_token", "y7qnwdgCCxfC39epFnXT"], ["created_at", "2016-03-10 23:33:29.250255"], ["updated_at", "2016-03-10 23:33:29.250255"]]  (12.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (1.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:29.272480"], ["updated_at", "2016-03-10 23:33:29.272480"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:29.289682"], ["updated_at", "2016-03-10 23:33:29.289682"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:29.331402"], ["current_sign_in_at", "2016-03-10 23:33:29.331402"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:29.332555"], ["id", 1]]  (11.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (68.7ms) Completed 500 Internal Server Error in 78ms (ActiveRecord: 0.5ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_aTsDXwU2ZV1DRP-9EKH"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$N1PqafBKHsWV/bHIdfnfqePmRLKqZMzLxrk8CMD39aEWqDTHv7MHG"], ["confirmed_at", "2016-03-10 23:33:29.516407"], ["authentication_token", "_aTsDXwU2ZV1DRP-9EKH"], ["created_at", "2016-03-10 23:33:29.521033"], ["updated_at", "2016-03-10 23:33:29.521033"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:29.546020"], ["updated_at", "2016-03-10 23:33:29.546020"]]  (12.5ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:29.566834"], ["updated_at", "2016-03-10 23:33:29.566834"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (7.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test20@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:29.643724"], ["current_sign_in_at", "2016-03-10 23:33:29.643724"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:29.645278"], ["id", 1]]  (14.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 32ms (ActiveRecord: 15.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (66.1ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.4ms)  (11.3ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (18.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 34ms (Views: 32.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (21.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 43ms (Views: 39.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "tyR2ssf25sXyH4UqZddx"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "dbeb23c6ae4bfe899a9645345afac034817320c22de651da29f5edd5808a556b"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$s/GUJyWly3r470I0uJZmKeihhV0.F.cBa1lZliiO5bTm6AExVV1/W"], ["authentication_token", "tyR2ssf25sXyH4UqZddx"], ["created_at", "2016-03-10 23:33:30.025916"], ["updated_at", "2016-03-10 23:33:30.025916"], ["confirmation_token", "jHZ7a3uErQiHEkDzFAJQ"], ["confirmation_sent_at", "2016-03-10 23:33:30.027346"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 7.9ms Sent mail to mtdevise@example.com (3.6ms) Date: Thu, 10 Mar 2016 23:33:30 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e2044a9e61_81b10d70f457670@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:30.043683"], ["updated_at", "2016-03-10 23:33:30.043683"]]  (16.4ms) commit transaction  (0.3ms) begin transaction SQL (0.8ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:30.066594"], ["updated_at", "2016-03-10 23:33:30.066594"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (2.2ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:33:30.080282"], ["updated_at", "2016-03-10 23:33:30.081504"], ["id", 1]]  (9.6ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:30.103862"], ["current_sign_in_at", "2016-03-10 23:33:30.103862"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:30.104825"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 111ms (ActiveRecord: 50.3ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (1.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (2.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (61.6ms) Completed 500 Internal Server Error in 90ms (ActiveRecord: 0.5ms)  (11.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (17.5ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (55.2ms) Completed 500 Internal Server Error in 88ms (ActiveRecord: 2.0ms)  (14.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.9ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-10 23:33:30.494293"], ["updated_at", "2016-03-10 23:33:30.494293"]]  (10.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (3.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (10.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (49.2ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 2.2ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (21.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 26.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (53.0ms) Completed 500 Internal Server Error in 82ms (ActiveRecord: 1.6ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eexHfZEWPQGgN6c6Lj9M"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$8YU0EtfVDUv7FmXhu0/pgOCCbxYM.BZPIYDy.Oa07iT7ULS5l0lhq"], ["confirmed_at", "2016-03-10 23:33:30.906883"], ["authentication_token", "eexHfZEWPQGgN6c6Lj9M"], ["created_at", "2016-03-10 23:33:30.910316"], ["updated_at", "2016-03-10 23:33:30.910316"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.8ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:30.929332"], ["updated_at", "2016-03-10 23:33:30.929332"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:30.944885"], ["updated_at", "2016-03-10 23:33:30.944885"]]  (11.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (8.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (45.0ms) Completed 500 Internal Server Error in 77ms (ActiveRecord: 1.9ms)  (13.5ms) DELETE FROM "things";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ob4Esje2kc5yEuUSgG2x"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$yhhnt7Bm/oMDjRa.kbnS.eCRH6wEfSY4sRfTt/E/J5rG1wqG03Msi"], ["confirmed_at", "2016-03-10 23:33:31.163439"], ["authentication_token", "ob4Esje2kc5yEuUSgG2x"], ["created_at", "2016-03-10 23:33:31.167507"], ["updated_at", "2016-03-10 23:33:31.167507"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:31.211144"], ["current_sign_in_at", "2016-03-10 23:33:31.211144"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:31.212322"], ["id", 1]]  (8.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 9.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (76.2ms) Completed 500 Internal Server Error in 84ms (ActiveRecord: 0.4ms)  (10.2ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "S59jMFDzVeCZewJ1_TGS"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$KLEnoQ7o864SJoRYAkI3Mer/jCUourF70Q2fwwb7Qxm/qkRzhNakK"], ["confirmed_at", "2016-03-10 23:33:31.411845"], ["authentication_token", "S59jMFDzVeCZewJ1_TGS"], ["created_at", "2016-03-10 23:33:31.416598"], ["updated_at", "2016-03-10 23:33:31.416598"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:31.434085"], ["updated_at", "2016-03-10 23:33:31.434085"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:31.449890"], ["updated_at", "2016-03-10 23:33:31.449890"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (63.3ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "SUCxs3jnmU-tsoHVuFfE"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$A7bpQZvUMhFWZ88gD4vXJeZi80E1jDFDsttbpmrEfI8yzXP40PtPq"], ["confirmed_at", "2016-03-10 23:33:31.652454"], ["authentication_token", "SUCxs3jnmU-tsoHVuFfE"], ["created_at", "2016-03-10 23:33:31.656424"], ["updated_at", "2016-03-10 23:33:31.656424"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-10 23:33:31.673123"], ["updated_at", "2016-03-10 23:33:31.673123"]]  (9.1ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:33:31.687022"], ["updated_at", "2016-03-10 23:33:31.687022"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:31.732976"], ["current_sign_in_at", "2016-03-10 23:33:31.732976"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:31.734748"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (43.9ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.3ms)  (10.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (125.2ms) Completed 500 Internal Server Error in 133ms (ActiveRecord: 0.0ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (11.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "XR9cEV1WTnoWoBrRy6ap"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$iStIR0Z9tuHjyc1uRuDk4uFOT.21saSMATcpMkkmb27jH4hcXfcea"], ["confirmed_at", "2016-03-10 23:33:32.250009"], ["authentication_token", "XR9cEV1WTnoWoBrRy6ap"], ["created_at", "2016-03-10 23:33:32.253137"], ["updated_at", "2016-03-10 23:33:32.253137"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:33:32.289793"], ["current_sign_in_at", "2016-03-10 23:33:32.289793"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:33:32.290794"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:33:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (47.7ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.3ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (13.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JDsaducLgMAeS949UvGD"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "26dfc65c104b8aa04e35b470fa573cb8296f2f7b97a284137dc288194a6ded8c"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$OHAv71DE6ZnGuZSG4Ml4IuCI41tH6UT1BihxvuYNozc3htDSxV1j2"], ["authentication_token", "JDsaducLgMAeS949UvGD"], ["created_at", "2016-03-10 23:34:59.505160"], ["updated_at", "2016-03-10 23:34:59.505160"], ["confirmation_token", "KeNEnS-D7hzvXf15csVH"], ["confirmation_sent_at", "2016-03-10 23:34:59.707414"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (8.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 473.0ms Sent mail to user@example.com (54.9ms) Date: Thu, 10 Mar 2016 23:35:00 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e204a436876_842ed50f816769@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:00.262604"], ["updated_at", "2016-03-10 23:35:00.262604"]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:00.347345"], ["updated_at", "2016-03-10 23:35:00.347345"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:35:00.360069"], ["updated_at", "2016-03-10 23:35:00.360646"], ["id", 1]]  (10.7ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LRuGzuGC1BbtpLZNuSEN"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$Vdqij5h2CvcheL5XtSGh..I7mx1bE41sBefqja.USiuglDQVv9IKu"], ["confirmed_at", "2016-03-10 23:35:00.492913"], ["authentication_token", "LRuGzuGC1BbtpLZNuSEN"], ["created_at", "2016-03-10 23:35:00.495915"], ["updated_at", "2016-03-10 23:35:00.495915"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:00 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (238.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.7ms) Completed 200 OK in 588ms (Views: 556.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:01.151204"], ["current_sign_in_at", "2016-03-10 23:35:01.151204"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:01.152554"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 47ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (10.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (43.6ms) Completed 500 Internal Server Error in 80ms (ActiveRecord: 0.9ms)  (12.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (44.5ms) Completed 500 Internal Server Error in 58ms (ActiveRecord: 0.0ms)  (12.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (12.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "szGbRAynMyqRS49SzeGo"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$4PpATm4B8UEcMlxBELgBdehl.h/yijfU6h4p.efXWign7j/R8wRd6"], ["confirmed_at", "2016-03-10 23:35:01.644029"], ["authentication_token", "szGbRAynMyqRS49SzeGo"], ["created_at", "2016-03-10 23:35:01.647062"], ["updated_at", "2016-03-10 23:35:01.647062"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:01.662242"], ["updated_at", "2016-03-10 23:35:01.662242"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:01.674014"], ["updated_at", "2016-03-10 23:35:01.674014"]]  (7.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:01.706032"], ["current_sign_in_at", "2016-03-10 23:35:01.706032"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:01.706911"], ["id", 1]]  (9.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 17ms (ActiveRecord: 10.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (42.1ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.3ms)  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "XtJJu3b4zz4CKqLv3LS7"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$dwHhR.jMGDFxjEij.rVDhONxAeuFN97AKrA9Z2OBTMWKjX1j63N7C"], ["confirmed_at", "2016-03-10 23:35:01.839954"], ["authentication_token", "XtJJu3b4zz4CKqLv3LS7"], ["created_at", "2016-03-10 23:35:01.843387"], ["updated_at", "2016-03-10 23:35:01.843387"]]  (12.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:01.864024"], ["updated_at", "2016-03-10 23:35:01.864024"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:01.880503"], ["updated_at", "2016-03-10 23:35:01.880503"]]  (11.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (122.9ms) Completed 500 Internal Server Error in 131ms (ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "czVSrv_8reReNQn_Z-iq"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$8rlqKmUf0j2ZuU5ih9YhI.jw9L9EaF.4q.nHdqnlY3KyOn21sZ..a"], ["confirmed_at", "2016-03-10 23:35:02.173329"], ["authentication_token", "czVSrv_8reReNQn_Z-iq"], ["created_at", "2016-03-10 23:35:02.178053"], ["updated_at", "2016-03-10 23:35:02.178053"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:02.195744"], ["updated_at", "2016-03-10 23:35:02.195744"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:02.211111"], ["updated_at", "2016-03-10 23:35:02.211111"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zRzJ-xyurLX7dtBFtGSG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$dhGIOlCj/k0SBN/19XWdw.q05uQy9W47228AmxXh7yhy9bzSxVXlO"], ["confirmed_at", "2016-03-10 23:35:02.226397"], ["authentication_token", "zRzJ-xyurLX7dtBFtGSG"], ["created_at", "2016-03-10 23:35:02.230030"], ["updated_at", "2016-03-10 23:35:02.230030"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 2], ["created_at", "2016-03-10 23:35:02.245887"], ["updated_at", "2016-03-10 23:35:02.245887"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:35:02.257429"], ["updated_at", "2016-03-10 23:35:02.257429"]]  (8.4ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:35:02.279325"], ["updated_at", "2016-03-10 23:35:02.279325"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:35:02.293556"], ["updated_at", "2016-03-10 23:35:02.293556"]]  (7.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:02.337992"], ["current_sign_in_at", "2016-03-10 23:35:02.337992"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:02.339442"], ["id", 1]]  (14.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 28ms (ActiveRecord: 15.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (60.1ms) Completed 500 Internal Server Error in 70ms (ActiveRecord: 0.5ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'things';  (12.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jtDxwV-ssjXMz8WQigpr"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$xYKBozUZiJC2OkbC.OvZrOMVyA19rXRM2pYE8XLCyRWg3xyYqT3O6"], ["confirmed_at", "2016-03-10 23:35:02.519890"], ["authentication_token", "jtDxwV-ssjXMz8WQigpr"], ["created_at", "2016-03-10 23:35:02.523955"], ["updated_at", "2016-03-10 23:35:02.523955"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:02.541238"], ["updated_at", "2016-03-10 23:35:02.541238"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:02.554132"], ["updated_at", "2016-03-10 23:35:02.554132"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "r7-VNs9GN6ZrJdMyuZib"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$1zsGJu2mR2tdI5sGUhJ3auNPvNJTHY4WsOjtNnEuNhbPbCzdr0E.S"], ["confirmed_at", "2016-03-10 23:35:02.568814"], ["authentication_token", "r7-VNs9GN6ZrJdMyuZib"], ["created_at", "2016-03-10 23:35:02.572221"], ["updated_at", "2016-03-10 23:35:02.572221"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-10 23:35:02.590014"], ["updated_at", "2016-03-10 23:35:02.590014"]]  (10.0ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:35:02.605147"], ["updated_at", "2016-03-10 23:35:02.605147"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:35:02.619349"], ["updated_at", "2016-03-10 23:35:02.619349"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:35:02.631898"], ["updated_at", "2016-03-10 23:35:02.631898"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:02.669009"], ["current_sign_in_at", "2016-03-10 23:35:02.669009"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:02.670008"], ["id", 2]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (45.0ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.5ms)  (9.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bxHArKtyCtzkswp-Jmxy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$NBe81JXajygyzZYog6ZAMubVp8mldJKPt/RRqfWyPFFviaqNfEYbO"], ["confirmed_at", "2016-03-10 23:35:02.851674"], ["authentication_token", "bxHArKtyCtzkswp-Jmxy"], ["created_at", "2016-03-10 23:35:02.854987"], ["updated_at", "2016-03-10 23:35:02.854987"]]  (10.3ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:02.873331"], ["updated_at", "2016-03-10 23:35:02.873331"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:02.885845"], ["updated_at", "2016-03-10 23:35:02.885845"]]  (8.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:02.921619"], ["current_sign_in_at", "2016-03-10 23:35:02.921619"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:02.922692"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (42.1ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.4ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ixYz74Vdw7Jwm8EdQ7X8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$9ELp4fVxF/3gZsQQVpkGqOPlre6IxdCzTmPxuaF190JbP9M6yAujm"], ["confirmed_at", "2016-03-10 23:35:03.059260"], ["authentication_token", "ixYz74Vdw7Jwm8EdQ7X8"], ["created_at", "2016-03-10 23:35:03.063519"], ["updated_at", "2016-03-10 23:35:03.063519"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:03.080463"], ["updated_at", "2016-03-10 23:35:03.080463"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:03.094231"], ["updated_at", "2016-03-10 23:35:03.094231"]]  (7.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:03.127981"], ["current_sign_in_at", "2016-03-10 23:35:03.127981"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:03.128833"], ["id", 1]]  (7.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 17ms (ActiveRecord: 8.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (40.1ms) Completed 500 Internal Server Error in 48ms (ActiveRecord: 0.5ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Mhzt_85N4aRRyWXxqyL5"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$5YmmQeAn.fz8mpufeQeefeAbKOgoM4iVXELYNm047a91hCqBTBJY6"], ["confirmed_at", "2016-03-10 23:35:03.258504"], ["authentication_token", "Mhzt_85N4aRRyWXxqyL5"], ["created_at", "2016-03-10 23:35:03.261609"], ["updated_at", "2016-03-10 23:35:03.261609"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:03.275359"], ["updated_at", "2016-03-10 23:35:03.275359"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:03.289862"], ["updated_at", "2016-03-10 23:35:03.289862"]]  (10.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:03.329852"], ["current_sign_in_at", "2016-03-10 23:35:03.329852"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:03.330808"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (45.8ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.5ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NFNpQF5TfBJJW9xs_KFN"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$HlEJumuG5laMn6IiCmuHX.WDK64cKeGPCknNwm7VODLuZlb4OvNfG"], ["confirmed_at", "2016-03-10 23:35:03.467510"], ["authentication_token", "NFNpQF5TfBJJW9xs_KFN"], ["created_at", "2016-03-10 23:35:03.472355"], ["updated_at", "2016-03-10 23:35:03.472355"]]  (16.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:03.495918"], ["updated_at", "2016-03-10 23:35:03.495918"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:03.509627"], ["updated_at", "2016-03-10 23:35:03.509627"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:03.545085"], ["current_sign_in_at", "2016-03-10 23:35:03.545085"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:03.545939"], ["id", 1]]  (10.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (60.0ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.4ms)  (10.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sazSyiF2vbJ7zLx5RWBW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$p/VjutE5Qc1.ap9MgfBgvOzVnt0AEeq96wJBeXT2OZ.vqfY3B9Yuq"], ["confirmed_at", "2016-03-10 23:35:03.751130"], ["authentication_token", "sazSyiF2vbJ7zLx5RWBW"], ["created_at", "2016-03-10 23:35:03.753968"], ["updated_at", "2016-03-10 23:35:03.753968"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:03.770488"], ["updated_at", "2016-03-10 23:35:03.770488"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:03.782319"], ["updated_at", "2016-03-10 23:35:03.782319"]]  (9.7ms) commit transaction  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JrdYJvJZ4M3dafnuQWUq"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$906tH6GVBr6nHk6QhtgwJ.2vfgt/nR2Ipm0dk/OJWPLI8S3BYmDla"], ["confirmed_at", "2016-03-10 23:35:03.796241"], ["authentication_token", "JrdYJvJZ4M3dafnuQWUq"], ["created_at", "2016-03-10 23:35:03.799074"], ["updated_at", "2016-03-10 23:35:03.799074"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 2], ["created_at", "2016-03-10 23:35:03.814389"], ["updated_at", "2016-03-10 23:35:03.814389"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:35:03.826912"], ["updated_at", "2016-03-10 23:35:03.826912"]]  (10.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:03 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (58.1ms) Completed 500 Internal Server Error in 67ms (ActiveRecord: 0.2ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5muJz6EP4E_VNJniQa-E"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$p45Ug2C0O6rvh64F/t2klubS2rtb0NYTKrlTe5T/Y1tgzaNGp2jYS"], ["confirmed_at", "2016-03-10 23:35:03.994423"], ["authentication_token", "5muJz6EP4E_VNJniQa-E"], ["created_at", "2016-03-10 23:35:03.998299"], ["updated_at", "2016-03-10 23:35:03.998299"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:04.014363"], ["updated_at", "2016-03-10 23:35:04.014363"]]  (7.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:04.025510"], ["updated_at", "2016-03-10 23:35:04.025510"]]  (11.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (68.6ms) Completed 500 Internal Server Error in 78ms (ActiveRecord: 0.2ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZEYm_RBJsWAX_JyAMb2K"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$WJs132T5l5QR8Q5nietCNeJQR.UXRbxuHoeeL7PyuO3vrMpZ9f4cy"], ["confirmed_at", "2016-03-10 23:35:04.202021"], ["authentication_token", "ZEYm_RBJsWAX_JyAMb2K"], ["created_at", "2016-03-10 23:35:04.205675"], ["updated_at", "2016-03-10 23:35:04.205675"]]  (7.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:04.219940"], ["updated_at", "2016-03-10 23:35:04.219940"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:04.234463"], ["updated_at", "2016-03-10 23:35:04.234463"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (70.1ms) Completed 500 Internal Server Error in 82ms (ActiveRecord: 0.2ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ombDr26MWdWCqzJgmaAB"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$BGs05uUIwNn86NHRbTkQquSL/POwTLKDZxufAA5NdSC5ivQ6DZAk."], ["confirmed_at", "2016-03-10 23:35:04.410250"], ["authentication_token", "ombDr26MWdWCqzJgmaAB"], ["created_at", "2016-03-10 23:35:04.413617"], ["updated_at", "2016-03-10 23:35:04.413617"]]  (7.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:04.428426"], ["updated_at", "2016-03-10 23:35:04.428426"]]  (11.7ms) commit transaction  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:04.446540"], ["updated_at", "2016-03-10 23:35:04.446540"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (67.9ms) Completed 500 Internal Server Error in 79ms (ActiveRecord: 0.1ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (45.5ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.0ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Fw4asg92zT_vfHb-JDvn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$xF.eapMhIWv5fAbrPd8I5u6v7WrLF/KSFB0RYLat3EtYsoHMTQJj6"], ["confirmed_at", "2016-03-10 23:35:04.860204"], ["authentication_token", "Fw4asg92zT_vfHb-JDvn"], ["created_at", "2016-03-10 23:35:04.863191"], ["updated_at", "2016-03-10 23:35:04.863191"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:04.881716"], ["updated_at", "2016-03-10 23:35:04.881716"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:04.896898"], ["updated_at", "2016-03-10 23:35:04.896898"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:04.936125"], ["current_sign_in_at", "2016-03-10 23:35:04.936125"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:04.937184"], ["id", 1]]  (8.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 8.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (42.7ms) Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.4ms)  (12.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (38.6ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 2.4ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (22.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-10 23:35:05.381536"], ["updated_at", "2016-03-10 23:35:05.381536"]]  (10.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (2.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (190.7ms) Completed 500 Internal Server Error in 216ms (ActiveRecord: 1.6ms)  (16.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xqQGhjVfPS46tQ2Zttm3"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "90e570c58b3c3f9d5f980eb726d226d9e2526ea6758d3ba6584c58355b04b88a"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$OiZFaaVJe/7DyYKfkPkRsOUz8W.atPs62lLkdru8.whdH1hN9uJBK"], ["authentication_token", "xqQGhjVfPS46tQ2Zttm3"], ["created_at", "2016-03-10 23:35:05.772682"], ["updated_at", "2016-03-10 23:35:05.772682"], ["confirmation_token", "XkRm4BUy8SA5NH_gw35h"], ["confirmation_sent_at", "2016-03-10 23:35:05.773925"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 7.3ms Sent mail to mtdevise@example.com (4.0ms) Date: Thu, 10 Mar 2016 23:35:05 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e204a9bfa02_842ed50f81682f@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:05.787913"], ["updated_at", "2016-03-10 23:35:05.787913"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:05.806980"], ["updated_at", "2016-03-10 23:35:05.806980"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:35:05.820563"], ["updated_at", "2016-03-10 23:35:05.821182"], ["id", 1]]  (11.4ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:05.840294"], ["current_sign_in_at", "2016-03-10 23:35:05.840294"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:05.841262"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 92ms (ActiveRecord: 49.9ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (35.8ms) Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.3ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (47.4ms) Completed 500 Internal Server Error in 70ms (ActiveRecord: 1.7ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KCHQWzBKSyRTeg8qXx8t"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$Ev7m2/EnkvRPYGDTrh5eKOLehx71aJjYqKc6QHqAwpu/cSliTx8NO"], ["confirmed_at", "2016-03-10 23:35:06.138294"], ["authentication_token", "KCHQWzBKSyRTeg8qXx8t"], ["created_at", "2016-03-10 23:35:06.141617"], ["updated_at", "2016-03-10 23:35:06.141617"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-10 23:35:06.155153"], ["updated_at", "2016-03-10 23:35:06.155153"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:35:06.169006"], ["updated_at", "2016-03-10 23:35:06.169006"]]  (11.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (8.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (48.1ms) Completed 500 Internal Server Error in 81ms (ActiveRecord: 2.4ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vVgRzCs8cyx3-gtPjszV"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$csbQqrZVvjWQyJ1/vS9fUeW3bB.O8VUm.CKqTRWjCg5UbuyouFPqq"], ["confirmed_at", "2016-03-10 23:35:06.363360"], ["authentication_token", "vVgRzCs8cyx3-gtPjszV"], ["created_at", "2016-03-10 23:35:06.366583"], ["updated_at", "2016-03-10 23:35:06.366583"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:35:06.400694"], ["current_sign_in_at", "2016-03-10 23:35:06.400694"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:35:06.401600"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:35:06 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (41.3ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.3ms)  (12.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "aoXwPVDs7_-Di37RVeEZ"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$ax7vj.50r5ehMR7oajACvehFlVDkvEfrdmI6DQlARM50wxm42hy/2"], ["confirmed_at", "2016-03-10 23:36:44.799985"], ["authentication_token", "aoXwPVDs7_-Di37RVeEZ"], ["created_at", "2016-03-10 23:36:44.886680"], ["updated_at", "2016-03-10 23:36:44.886680"]]  (24.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:44.940700"], ["updated_at", "2016-03-10 23:36:44.940700"]]  (21.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:45.056418"], ["updated_at", "2016-03-10 23:36:45.056418"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QNxcpSP6nfdGHYTNLHb2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$b3vrkvFdoVw2p/itApE4V.Anpx3FsRIo./fwnRms1S1PqzDPZE7mC"], ["confirmed_at", "2016-03-10 23:36:45.073932"], ["authentication_token", "QNxcpSP6nfdGHYTNLHb2"], ["created_at", "2016-03-10 23:36:45.076918"], ["updated_at", "2016-03-10 23:36:45.076918"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", "2016-03-10 23:36:45.091538"], ["updated_at", "2016-03-10 23:36:45.091538"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:36:45.105646"], ["updated_at", "2016-03-10 23:36:45.105646"]]  (11.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (4.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Completed 401 Unauthorized in 29ms (ActiveRecord: 4.5ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (204.2ms) Completed 500 Internal Server Error in 248ms (ActiveRecord: 0.2ms)  (14.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PQdnzC3qkJfrJ5F2uzQ9"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$iD/ndJHcbygpiSkyUwV0Oe1K/yVS863Wv6QIIiEOlM9lIYNZK0NZi"], ["confirmed_at", "2016-03-10 23:36:45.538336"], ["authentication_token", "PQdnzC3qkJfrJ5F2uzQ9"], ["created_at", "2016-03-10 23:36:45.541796"], ["updated_at", "2016-03-10 23:36:45.541796"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:45.559917"], ["updated_at", "2016-03-10 23:36:45.559917"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:45.577777"], ["updated_at", "2016-03-10 23:36:45.577777"]]  (11.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms)  (13.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Dyknan1Ji-xVABy7mHRh"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$sALHxvhDnQAoLbuh9G6L5O2uP3TW89OxyxqmbT/VaBzNVMu4QPTnq"], ["confirmed_at", "2016-03-10 23:36:45.692090"], ["authentication_token", "Dyknan1Ji-xVABy7mHRh"], ["created_at", "2016-03-10 23:36:45.696074"], ["updated_at", "2016-03-10 23:36:45.696074"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:45.712885"], ["updated_at", "2016-03-10 23:36:45.712885"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:45.730871"], ["updated_at", "2016-03-10 23:36:45.730871"]]  (10.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)  (12.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sfMyWaoHWFcgoS7Qy-Qc"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$M7F7o9YGOEviqJ2/RS7iUeIEwv0kEO24EVtsB8dvSgmZLWHOfWgTi"], ["confirmed_at", "2016-03-10 23:36:45.838772"], ["authentication_token", "sfMyWaoHWFcgoS7Qy-Qc"], ["created_at", "2016-03-10 23:36:45.842107"], ["updated_at", "2016-03-10 23:36:45.842107"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:45.858994"], ["updated_at", "2016-03-10 23:36:45.858994"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:45.874615"], ["updated_at", "2016-03-10 23:36:45.874615"]]  (10.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:45 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Tod5gcSZf1VK6kbSRs-7"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "d83997e87839e2dbccb92edb8773ad84763386f6759e7a842bcb3ac090c27abe"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$/sdxC6N8ive.UkM97UGIJ.YvtKzaSnelbIXikK7yls59C361neY3i"], ["authentication_token", "Tod5gcSZf1VK6kbSRs-7"], ["created_at", "2016-03-10 23:36:46.041233"], ["updated_at", "2016-03-10 23:36:46.041233"], ["confirmation_token", "GmEuk-TdzxryLxYmxGdq"], ["confirmation_sent_at", "2016-03-10 23:36:46.288365"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.3ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 469.4ms Sent mail to user@example.com (30.0ms) Date: Thu, 10 Mar 2016 23:36:46 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2050ec54a6_85697b0f8676cc@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:46.820555"], ["updated_at", "2016-03-10 23:36:46.820555"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:46.855218"], ["updated_at", "2016-03-10 23:36:46.855218"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:36:46.870466"], ["updated_at", "2016-03-10 23:36:46.871461"], ["id", 1]]  (10.4ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sgz1fs_bFkY5jo5-yYZs"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$u7uIhHtk1UzsZ8nOtdX9T.JrRdL.8QN2x33koxGG6m264kKJpmT0m"], ["confirmed_at", "2016-03-10 23:36:47.010770"], ["authentication_token", "sgz1fs_bFkY5jo5-yYZs"], ["created_at", "2016-03-10 23:36:47.013952"], ["updated_at", "2016-03-10 23:36:47.013952"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:47.031102"], ["updated_at", "2016-03-10 23:36:47.031102"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:47.047108"], ["updated_at", "2016-03-10 23:36:47.047108"]]  (10.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (12.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_naNPVUx_R5KTdB3zjyL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$14c7d/Ws0YSZeY6UcD/epO4z83I48zHHTHjRrEtvt95gNpED.U2C."], ["confirmed_at", "2016-03-10 23:36:47.160168"], ["authentication_token", "_naNPVUx_R5KTdB3zjyL"], ["created_at", "2016-03-10 23:36:47.164476"], ["updated_at", "2016-03-10 23:36:47.164476"]]  (12.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:47.185280"], ["updated_at", "2016-03-10 23:36:47.185280"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:47.204050"], ["updated_at", "2016-03-10 23:36:47.204050"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (13.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "cQsSfwFg91iSAoyroxLq"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$or7exi1nZpLW6o0ImdjMJ.72IyoFBSQ1aXs7w.EU60xroU8ZRv5C2"], ["confirmed_at", "2016-03-10 23:36:47.320083"], ["authentication_token", "cQsSfwFg91iSAoyroxLq"], ["created_at", "2016-03-10 23:36:47.324720"], ["updated_at", "2016-03-10 23:36:47.324720"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:47.342030"], ["updated_at", "2016-03-10 23:36:47.342030"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:47.358030"], ["updated_at", "2016-03-10 23:36:47.358030"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MG-LAjusbkHEtjCphKyZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$rqka7zhhFvoz0XWgJAxAO.ie46alEPF74X8y5.kRQv7ZBT/vBlLwi"], ["confirmed_at", "2016-03-10 23:36:47.459964"], ["authentication_token", "MG-LAjusbkHEtjCphKyZ"], ["created_at", "2016-03-10 23:36:47.463460"], ["updated_at", "2016-03-10 23:36:47.463460"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:47.478921"], ["updated_at", "2016-03-10 23:36:47.478921"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:47.494891"], ["updated_at", "2016-03-10 23:36:47.494891"]]  (10.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Fr4CyxqHntz5MjhMy83n"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$01Jrd3lTcnyZhTE85E1eo.SdQgKuYEwVdOcKXohpCaIP73XTb8woi"], ["confirmed_at", "2016-03-10 23:36:47.645262"], ["authentication_token", "Fr4CyxqHntz5MjhMy83n"], ["created_at", "2016-03-10 23:36:47.648096"], ["updated_at", "2016-03-10 23:36:47.648096"]]  (12.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (12.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:47 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.3ms) Completed 500 Internal Server Error in 386ms (ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:48 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (15.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:48 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jxC4jx7o5o-KhKk2os4t"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$igve0uHQ/.QIVlgI1Qvd7u/4hCr59bi6qLrIjKVjykcMr76RMpE7a"], ["confirmed_at", "2016-03-10 23:36:48.374732"], ["authentication_token", "jxC4jx7o5o-KhKk2os4t"], ["created_at", "2016-03-10 23:36:48.378351"], ["updated_at", "2016-03-10 23:36:48.378351"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:48.396717"], ["updated_at", "2016-03-10 23:36:48.396717"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:48.413492"], ["updated_at", "2016-03-10 23:36:48.413492"]]  (11.3ms) commit transaction  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Rg5d8TYci9UKbkPwZCKJ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$sRubwRAuyBX9VgHJBSunTugHqvMMWFih3/JH4a.r1uVTxHtcIev2."], ["confirmed_at", "2016-03-10 23:36:48.430050"], ["authentication_token", "Rg5d8TYci9UKbkPwZCKJ"], ["created_at", "2016-03-10 23:36:48.434205"], ["updated_at", "2016-03-10 23:36:48.434205"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-10 23:36:48.453127"], ["updated_at", "2016-03-10 23:36:48.453127"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:36:48.469442"], ["updated_at", "2016-03-10 23:36:48.469442"]]  (8.5ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:36:48.487999"], ["updated_at", "2016-03-10 23:36:48.487999"]]  (14.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:36:48.505674"], ["updated_at", "2016-03-10 23:36:48.505674"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "pGRNetkRszArvyyKvu3M"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$HodxuB/aCaJrGjWYXT8xSuRpU.OcG9G33A5I5emfoZ/vHqKQQ7Uni"], ["confirmed_at", "2016-03-10 23:36:48.618643"], ["authentication_token", "pGRNetkRszArvyyKvu3M"], ["created_at", "2016-03-10 23:36:48.623189"], ["updated_at", "2016-03-10 23:36:48.623189"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:48.639690"], ["updated_at", "2016-03-10 23:36:48.639690"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:48.653868"], ["updated_at", "2016-03-10 23:36:48.653868"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6J47SuYWDZVdxPXdJdFD"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$81vuE71KdU9g.h3bTZEYluN5Z62nmkNmAxqljit9a3qb.2KXgxJVa"], ["confirmed_at", "2016-03-10 23:36:48.668797"], ["authentication_token", "6J47SuYWDZVdxPXdJdFD"], ["created_at", "2016-03-10 23:36:48.672032"], ["updated_at", "2016-03-10 23:36:48.672032"]]  (12.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 2], ["created_at", "2016-03-10 23:36:48.692120"], ["updated_at", "2016-03-10 23:36:48.692120"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:36:48.710704"], ["updated_at", "2016-03-10 23:36:48.710704"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:36:48.724824"], ["updated_at", "2016-03-10 23:36:48.724824"]]  (12.5ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:36:48.740017"], ["updated_at", "2016-03-10 23:36:48.740017"]]  (12.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WMwBoW248zSPbffWPgaa"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$Uub4P5YBih9dZAdIjUvre.6PrOv.8L8bBKbVmWOxfvEC4oC83BF7S"], ["confirmed_at", "2016-03-10 23:36:48.906931"], ["authentication_token", "WMwBoW248zSPbffWPgaa"], ["created_at", "2016-03-10 23:36:48.909859"], ["updated_at", "2016-03-10 23:36:48.909859"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)  (14.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (13.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7qHrQ_v4bTYR2yZPbmhx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$kH3KrgvmBtbi2269WLucseZ/sc3Pf0mII.I1d35ApclxcRniMwJz2"], ["confirmed_at", "2016-03-10 23:36:49.200428"], ["authentication_token", "7qHrQ_v4bTYR2yZPbmhx"], ["created_at", "2016-03-10 23:36:49.203153"], ["updated_at", "2016-03-10 23:36:49.203153"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:49.219831"], ["updated_at", "2016-03-10 23:36:49.219831"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:49.235090"], ["updated_at", "2016-03-10 23:36:49.235090"]]  (10.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-10 23:36:49.339881"], ["updated_at", "2016-03-10 23:36:49.339881"]]  (12.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (13.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "CgUyNTZtd1yC2DwQ5FMy"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$O7tQ9x2ZYs/gRGDTlOSXtudKiFsWWHH/EQ44vs56tyS3Oi6sCqBOy"], ["confirmed_at", "2016-03-10 23:36:49.549492"], ["authentication_token", "CgUyNTZtd1yC2DwQ5FMy"], ["created_at", "2016-03-10 23:36:49.553525"], ["updated_at", "2016-03-10 23:36:49.553525"]]  (12.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:49.573402"], ["updated_at", "2016-03-10 23:36:49.573402"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:49.590710"], ["updated_at", "2016-03-10 23:36:49.590710"]]  (14.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (12.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (15.0ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.3ms) DELETE FROM "mtdevise_members";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yxCNAeC7z5yGtfuRsKN_"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$fHL5Hu0B7BIXf4vXmRy39eTJgQh.ElcPQ9TOVjtaTogwloAiMoQKK"], ["confirmed_at", "2016-03-10 23:36:49.881064"], ["authentication_token", "yxCNAeC7z5yGtfuRsKN_"], ["created_at", "2016-03-10 23:36:49.884682"], ["updated_at", "2016-03-10 23:36:49.884682"]]  (12.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:49.905436"], ["updated_at", "2016-03-10 23:36:49.905436"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:49.921994"], ["updated_at", "2016-03-10 23:36:49.921994"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BTDrWRsKcYtq5q4t3zWx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$SAw/C/.hbR9su5Tjnp907.13XUoXlA9nBDDj8IDsN6h2aGN6tGTJ6"], ["confirmed_at", "2016-03-10 23:36:50.032184"], ["authentication_token", "BTDrWRsKcYtq5q4t3zWx"], ["created_at", "2016-03-10 23:36:50.035174"], ["updated_at", "2016-03-10 23:36:50.035174"]]  (13.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-10 23:36:50.054030"], ["updated_at", "2016-03-10 23:36:50.054030"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:36:50.070454"], ["updated_at", "2016-03-10 23:36:50.070454"]]  (13.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:36:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (13.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "P1Xn5gVeQydhDf5ySZB-"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$3Z3C1W7tBAhq8hOd0aZyiuZNBQ00tgUc3YEgIvw5UNtoZ2mVBG2fK"], ["confirmed_at", "2016-03-10 23:39:50.407439"], ["authentication_token", "P1Xn5gVeQydhDf5ySZB-"], ["created_at", "2016-03-10 23:39:50.506661"], ["updated_at", "2016-03-10 23:39:50.506661"]]  (15.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (259.0ms) Completed 500 Internal Server Error in 358ms (ActiveRecord: 0.0ms)  (21.3ms) DELETE FROM "things";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (14.0ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jGoFoe6HfCBi7zw4ds2R"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$HEs0eeGmVfLe03ywN3b55O3H2Hijds2uV/fd/IhGTsk/zlhbAfaOG"], ["confirmed_at", "2016-03-10 23:39:51.010764"], ["authentication_token", "jGoFoe6HfCBi7zw4ds2R"], ["created_at", "2016-03-10 23:39:51.014305"], ["updated_at", "2016-03-10 23:39:51.014305"]]  (11.8ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:51.058476"], ["updated_at", "2016-03-10 23:39:51.058476"]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:51.167982"], ["updated_at", "2016-03-10 23:39:51.167982"]]  (14.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:51 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.7ms) Completed 200 OK in 467ms (Views: 466.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:51 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (14.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (50.0ms) Completed 200 OK in 71ms (Views: 67.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:39:51 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.2ms) Completed 200 OK in 42ms (Views: 14.6ms | ActiveRecord: 2.3ms)  (15.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (12.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.8ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.8ms) Completed 200 OK in 24ms (Views: 8.1ms | ActiveRecord: 1.7ms)  (12.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.6ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.8ms) Completed 200 OK in 24ms (Views: 8.2ms | ActiveRecord: 1.6ms)  (12.1ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.6ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:39:52 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LVUcAqDS-YpxZQ_sQTtg"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "2caa13b975f20262bfb3efc996dfe2f61b419443020ed19a099c3fa65dcad94b"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$f9ELJ3WUNSHgz/5KuxhNlezxxORoSl.OzGytf1y1pHltJLru4KnXe"], ["authentication_token", "LVUcAqDS-YpxZQ_sQTtg"], ["created_at", "2016-03-10 23:39:52.385486"], ["updated_at", "2016-03-10 23:39:52.385486"], ["confirmation_token", "CSQ1uraFfKYKsWjG2Lz8"], ["confirmation_sent_at", "2016-03-10 23:39:52.615393"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (9.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 550.3ms Sent mail to mtdevise@example.com (53.6ms) Date: Thu, 10 Mar 2016 23:39:53 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e205c9443a6_8964d50f8284a@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:53.302020"], ["updated_at", "2016-03-10 23:39:53.302020"]]  (16.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:53.331942"], ["updated_at", "2016-03-10 23:39:53.331942"]]  (13.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:39:53.348675"], ["updated_at", "2016-03-10 23:39:53.349774"], ["id", 1]]  (10.8ms) commit transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.7ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-10 23:39:53.373347"], ["current_sign_in_at", "2016-03-10 23:39:53.373347"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-10 23:39:53.374734"], ["id", 1]]  (12.8ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 1021ms (ActiveRecord: 59.0ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:53 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.6ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (1.9ms) Completed 200 OK in 21ms (Views: 16.8ms | ActiveRecord: 0.9ms)  (12.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-10 23:39:53.529164"], ["updated_at", "2016-03-10 23:39:53.529164"]]  (13.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:53 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:53 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-10 23:39:53 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.2ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.0ms) Completed 200 OK in 37ms (Views: 8.1ms | ActiveRecord: 2.6ms)  (16.8ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (14.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.6ms) DELETE FROM "mtdevise_users";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (14.1ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (2.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.4ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BfBxcZ1dukjR7yDArpi7"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "497b17790ba726bee72223a4d289cc231264c9cc2c0455f2bd7d0b191dedf269"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$xU8aLE/qpWpm.WYBnNrdwuyYUFtrNfqQ3OHrZTh/Lzvo8enVLiqiW"], ["authentication_token", "BfBxcZ1dukjR7yDArpi7"], ["created_at", "2016-03-10 23:39:53.788349"], ["updated_at", "2016-03-10 23:39:53.788349"], ["confirmation_token", "Fff2RPZ7jXRD1MWj6xVo"], ["confirmation_sent_at", "2016-03-10 23:39:53.790939"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (7.7ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 11.4ms Sent mail to user@example.com (2.8ms) Date: Thu, 10 Mar 2016 23:39:53 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e205c9c51e8_8964d50f828545@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:53.809772"], ["updated_at", "2016-03-10 23:39:53.809772"]]  (13.2ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:53.828141"], ["updated_at", "2016-03-10 23:39:53.828141"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-10 23:39:53.843607"], ["updated_at", "2016-03-10 23:39:53.844551"], ["id", 1]]  (11.8ms) commit transaction Mtdevise::User Load (0.7ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (11.7ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (13.9ms) DELETE FROM "mtdevise_accounts";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kH-sj2U1fgRgC7NmCmds"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$908yY83GT2gC0BsSo9ZWme7mcZJvTJfH9rQX9BQTA9OzaA5tcj.BS"], ["confirmed_at", "2016-03-10 23:39:54.009371"], ["authentication_token", "kH-sj2U1fgRgC7NmCmds"], ["created_at", "2016-03-10 23:39:54.013471"], ["updated_at", "2016-03-10 23:39:54.013471"]]  (12.2ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:54.038216"], ["updated_at", "2016-03-10 23:39:54.038216"]]  (12.9ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:54.060895"], ["updated_at", "2016-03-10 23:39:54.060895"]]  (13.5ms) commit transaction  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NHzsHa1E81j-iKaW2uXy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$M89qi8dieFwyc4X/W4tvj.T67xt8zIanNsWO.RJgZt9UPr.A8H0yi"], ["confirmed_at", "2016-03-10 23:39:54.082808"], ["authentication_token", "NHzsHa1E81j-iKaW2uXy"], ["created_at", "2016-03-10 23:39:54.089248"], ["updated_at", "2016-03-10 23:39:54.089248"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 2], ["created_at", "2016-03-10 23:39:54.108763"], ["updated_at", "2016-03-10 23:39:54.108763"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:39:54.126939"], ["updated_at", "2016-03-10 23:39:54.126939"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:39:54.147930"], ["updated_at", "2016-03-10 23:39:54.147930"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:39:54.164515"], ["updated_at", "2016-03-10 23:39:54.164515"]]  (13.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (13.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'things';  (12.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FHxL6vFrUX9d5n8BxHfv"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$8OJZS059qxEiJL7d0Jx2fO.DqlYjOp1VXIbkbfclgRENxaYmdD8Jm"], ["confirmed_at", "2016-03-10 23:39:54.297218"], ["authentication_token", "FHxL6vFrUX9d5n8BxHfv"], ["created_at", "2016-03-10 23:39:54.301200"], ["updated_at", "2016-03-10 23:39:54.301200"]]  (12.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:54.320565"], ["updated_at", "2016-03-10 23:39:54.320565"]]  (12.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:54.337613"], ["updated_at", "2016-03-10 23:39:54.337613"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jtUkaGf4G41y2PQqbAMP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$TwOkDY3HW.61df3tKfhkpOmpT2RRIFqsFamUElmk9VEORGjxMqCYm"], ["confirmed_at", "2016-03-10 23:39:54.351803"], ["authentication_token", "jtUkaGf4G41y2PQqbAMP"], ["created_at", "2016-03-10 23:39:54.354791"], ["updated_at", "2016-03-10 23:39:54.354791"]]  (13.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-10 23:39:54.374299"], ["updated_at", "2016-03-10 23:39:54.374299"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:39:54.390787"], ["updated_at", "2016-03-10 23:39:54.390787"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-10 23:39:54.405991"], ["updated_at", "2016-03-10 23:39:54.405991"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-10 23:39:54.421225"], ["updated_at", "2016-03-10 23:39:54.421225"]]  (13.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (13.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'things';  (12.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (13.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (14.1ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (13.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xVSM4PtSxiLV3EnvTzw2"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$N0l6fMoxcgrPgr0UpwNGoeyrIhZD0PElTqjVXs6UiEi6HmWAe/kvu"], ["confirmed_at", "2016-03-10 23:39:54.723833"], ["authentication_token", "xVSM4PtSxiLV3EnvTzw2"], ["created_at", "2016-03-10 23:39:54.726599"], ["updated_at", "2016-03-10 23:39:54.726599"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.8ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:54.748697"], ["updated_at", "2016-03-10 23:39:54.748697"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:54.767375"], ["updated_at", "2016-03-10 23:39:54.767375"]]  (13.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (13.5ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (13.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-10 23:39:54 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (14.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (14.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (16.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (14.0ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.9ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (26.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (27.3ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (14.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (17.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.9ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JNKUoNLkp-aJTqooL_hG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$P/55LNGQ/oBaUUmx7gbOreB1imqr2otyR9ro2HQu.UonZ50nidcrO"], ["confirmed_at", "2016-03-10 23:39:55.373389"], ["authentication_token", "JNKUoNLkp-aJTqooL_hG"], ["created_at", "2016-03-10 23:39:55.377509"], ["updated_at", "2016-03-10 23:39:55.377509"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.3ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)  (13.4ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (26.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "874-ZNGQi62s-9cG1DNG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$v3Tq9MIWI/VagsUutVqT1eLdpH.VF7sE4ySvCSk6n2R5jFWgJ0s0W"], ["confirmed_at", "2016-03-10 23:39:55.561365"], ["authentication_token", "874-ZNGQi62s-9cG1DNG"], ["created_at", "2016-03-10 23:39:55.565467"], ["updated_at", "2016-03-10 23:39:55.565467"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:55.585023"], ["updated_at", "2016-03-10 23:39:55.585023"]]  (10.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:55.602378"], ["updated_at", "2016-03-10 23:39:55.602378"]]  (13.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GYCv9oxxQoJ24u8SzNLg"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$5IIFSx1j5g08iKVmDwPpie73tO/RduxkeP1JCFRvCmx0QdNayBO.G"], ["confirmed_at", "2016-03-10 23:39:55.721633"], ["authentication_token", "GYCv9oxxQoJ24u8SzNLg"], ["created_at", "2016-03-10 23:39:55.725365"], ["updated_at", "2016-03-10 23:39:55.725365"]]  (7.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:55.740491"], ["updated_at", "2016-03-10 23:39:55.740491"]]  (11.5ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:55.757631"], ["updated_at", "2016-03-10 23:39:55.757631"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "aUbSBtPRWN1iRkkA2qWZ"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$D3B66NZcRsjZZjgwhOUGVelZ9e8D9HaYQIK/gFkki00ZyiEYzmHze"], ["confirmed_at", "2016-03-10 23:39:55.858651"], ["authentication_token", "aUbSBtPRWN1iRkkA2qWZ"], ["created_at", "2016-03-10 23:39:55.862393"], ["updated_at", "2016-03-10 23:39:55.862393"]]  (11.1ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.7ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:55.886896"], ["updated_at", "2016-03-10 23:39:55.886896"]]  (11.0ms) commit transaction  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:55.908546"], ["updated_at", "2016-03-10 23:39:55.908546"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Tz1rR4-WeZWNvyMNJ_uu"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$hgZm4GhyzAVVLauNj./VPeQrQux804jv8hl6pjqf9jlODNSKNRtpq"], ["confirmed_at", "2016-03-10 23:39:56.023348"], ["authentication_token", "Tz1rR4-WeZWNvyMNJ_uu"], ["created_at", "2016-03-10 23:39:56.026944"], ["updated_at", "2016-03-10 23:39:56.026944"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.044586"], ["updated_at", "2016-03-10 23:39:56.044586"]]  (11.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.061404"], ["updated_at", "2016-03-10 23:39:56.061404"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (12.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.9ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "AyA1WGtx3Mv6xKzfGan1"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$5sX4XNR5C7F5fiJEywFY4.C6didrfPpt2tavzN95ky5q0kS2ZyDE2"], ["confirmed_at", "2016-03-10 23:39:56.215076"], ["authentication_token", "AyA1WGtx3Mv6xKzfGan1"], ["created_at", "2016-03-10 23:39:56.219141"], ["updated_at", "2016-03-10 23:39:56.219141"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.237067"], ["updated_at", "2016-03-10 23:39:56.237067"]]  (10.9ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.253724"], ["updated_at", "2016-03-10 23:39:56.253724"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)  (11.8ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZeW-Bzcs-AXyBQ3tqrU9"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$SkfY3l7ElPCKfF2prbjwZ.KPQpvnI/IzTHad3IOLQVlnMGd5vjAqO"], ["confirmed_at", "2016-03-10 23:39:56.366766"], ["authentication_token", "ZeW-Bzcs-AXyBQ3tqrU9"], ["created_at", "2016-03-10 23:39:56.370305"], ["updated_at", "2016-03-10 23:39:56.370305"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.387970"], ["updated_at", "2016-03-10 23:39:56.387970"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.403936"], ["updated_at", "2016-03-10 23:39:56.403936"]]  (10.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "tc4oBA5uJRzK4rzbQzAt"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$JhI3C3UGrcmNQnWuB7jGReH0McXaNgrxGeKwtI/rmlyH8FZlfAxFW"], ["confirmed_at", "2016-03-10 23:39:56.523430"], ["authentication_token", "tc4oBA5uJRzK4rzbQzAt"], ["created_at", "2016-03-10 23:39:56.527827"], ["updated_at", "2016-03-10 23:39:56.527827"]]  (10.6ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.6ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.550441"], ["updated_at", "2016-03-10 23:39:56.550441"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.565666"], ["updated_at", "2016-03-10 23:39:56.565666"]]  (8.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.9ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.3ms)  (12.5ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (13.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yuEubuMDQyZcSv1KnbSL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$UVaTnBfmmZEz09u5iywVAu3AtrQVD3tWCTddJQKhyXGxGtrJKAnse"], ["confirmed_at", "2016-03-10 23:39:56.687569"], ["authentication_token", "yuEubuMDQyZcSv1KnbSL"], ["created_at", "2016-03-10 23:39:56.691776"], ["updated_at", "2016-03-10 23:39:56.691776"]]  (12.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.711224"], ["updated_at", "2016-03-10 23:39:56.711224"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.726938"], ["updated_at", "2016-03-10 23:39:56.726938"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "v-5--betvM4z6jEzLxqf"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$OK56V3jNEO0i99oNFEZbfO5J9/5VdAoTb29QCKE9vabHqNV98Px9G"], ["confirmed_at", "2016-03-10 23:39:56.742882"], ["authentication_token", "v-5--betvM4z6jEzLxqf"], ["created_at", "2016-03-10 23:39:56.746632"], ["updated_at", "2016-03-10 23:39:56.746632"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-10 23:39:56.763788"], ["updated_at", "2016-03-10 23:39:56.763788"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-10 23:39:56.778923"], ["updated_at", "2016-03-10 23:39:56.778923"]]  (10.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:56 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)  (11.3ms) DELETE FROM "things";  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "g-sxutyWTrkDiBAWXju3"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$qFx8DeQ0T4BuGMYQo/jLR.YwlHqKznDMWOrIpz0p5NAKfWl9ZtfFm"], ["confirmed_at", "2016-03-10 23:39:56.955707"], ["authentication_token", "g-sxutyWTrkDiBAWXju3"], ["created_at", "2016-03-10 23:39:56.960806"], ["updated_at", "2016-03-10 23:39:56.960806"]]  (11.1ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:56.980576"], ["updated_at", "2016-03-10 23:39:56.980576"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:56.998297"], ["updated_at", "2016-03-10 23:39:56.998297"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:57 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.6ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "grfsqs2Mi2Sgs9Q8_DVJ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$hoS.L6qxsNSdkFVzgVsJsOAJua/qw6U4qE8iJQZ.6MFJeqn7Jx1FG"], ["confirmed_at", "2016-03-10 23:39:57.107141"], ["authentication_token", "grfsqs2Mi2Sgs9Q8_DVJ"], ["created_at", "2016-03-10 23:39:57.110983"], ["updated_at", "2016-03-10 23:39:57.110983"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-10 23:39:57.129108"], ["updated_at", "2016-03-10 23:39:57.129108"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-10 23:39:57.145597"], ["updated_at", "2016-03-10 23:39:57.145597"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-10 23:39:57 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (14.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4GBLzn1T8AASdxfw_4pe"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$IPN71GFSStMfVLTzsO6vke80ynn3sC2BI3mgfDIN4tNOR0Q4f3rg2"], ["confirmed_at", "2016-03-11 01:33:58.830914"], ["authentication_token", "4GBLzn1T8AASdxfw_4pe"], ["created_at", "2016-03-11 01:33:58.932035"], ["updated_at", "2016-03-11 01:33:58.932035"]]  (17.8ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:33:58.998228"], ["updated_at", "2016-03-11 01:33:58.998228"]]  (14.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:33:59.131602"], ["updated_at", "2016-03-11 01:33:59.131602"]]  (12.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:33:59 +0000 Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Completed 401 Unauthorized in 33ms (ActiveRecord: 0.4ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:33:59 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (315.2ms) Completed 200 OK in 838ms (Views: 831.1ms | ActiveRecord: 0.3ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test1"]] Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 13ms (ActiveRecord: 1.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (17.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ux6b-mMgkPxye_319kxU"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$tB0/Jxz5sIHPCl2y30ZT9.WsIJcXhVP7.zHD1jPTmjLaZMhUPhvKK"], ["confirmed_at", "2016-03-11 01:34:00.323329"], ["authentication_token", "ux6b-mMgkPxye_319kxU"], ["created_at", "2016-03-11 01:34:00.329129"], ["updated_at", "2016-03-11 01:34:00.329129"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:00.347924"], ["updated_at", "2016-03-11 01:34:00.347924"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:00.367333"], ["updated_at", "2016-03-11 01:34:00.367333"]]  (20.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test2"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test2@example.com"]] Completed 401 Unauthorized in 9ms (ActiveRecord: 0.7ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (19.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (32.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oyK29BKBMxLyM1Fx_gP7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$IEGVUaN5Ir2w5ZRlgXpdKuU8KR4X3aBL.sKZY3EdF92pWT5usBmW6"], ["confirmed_at", "2016-03-11 01:34:00.566107"], ["authentication_token", "oyK29BKBMxLyM1Fx_gP7"], ["created_at", "2016-03-11 01:34:00.570001"], ["updated_at", "2016-03-11 01:34:00.570001"]]  (8.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:00.584348"], ["updated_at", "2016-03-11 01:34:00.584348"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:00.598314"], ["updated_at", "2016-03-11 01:34:00.598314"]]  (7.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test3"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:00.668173"], ["current_sign_in_at", "2016-03-11 01:34:00.668173"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:00.669939"], ["id", 1]]  (11.5ms) commit transaction Redirected to http://test3.example.com/ Completed 302 Found in 55ms (ActiveRecord: 13.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (3.5ms) Completed 200 OK in 29ms (Views: 24.6ms | ActiveRecord: 0.7ms)  (12.9ms) DELETE FROM "things";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WZpAspNDLSDBMFAAAyPo"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$xrAaKh0JXeD2mJd1.p.7kOuMPf.nTsUiOwVB2bclGY03csVB0GSoy"], ["confirmed_at", "2016-03-11 01:34:00.836342"], ["authentication_token", "WZpAspNDLSDBMFAAAyPo"], ["created_at", "2016-03-11 01:34:00.840741"], ["updated_at", "2016-03-11 01:34:00.840741"]]  (8.9ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:00.859867"], ["updated_at", "2016-03-11 01:34:00.859867"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:00.874906"], ["updated_at", "2016-03-11 01:34:00.874906"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "n7dBTWPG1PqpkRKHUpGy"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$bOykYIC148l52mAWSvk.1ekARYGrclNrRAabKtFiseDz3ztur5mqS"], ["confirmed_at", "2016-03-11 01:34:00.889825"], ["authentication_token", "n7dBTWPG1PqpkRKHUpGy"], ["created_at", "2016-03-11 01:34:00.893606"], ["updated_at", "2016-03-11 01:34:00.893606"]]  (7.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-11 01:34:00.908710"], ["updated_at", "2016-03-11 01:34:00.908710"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:34:00.924789"], ["updated_at", "2016-03-11 01:34:00.924789"]]  (11.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:00 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test4"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test5@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZjtxvhBfgACx6sHF2Unx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$s6ZjvlDQPHG9Ok.42Q4hyelbPeK4f0PeqomKz9m1mhlHm8KS0b0sC"], ["confirmed_at", "2016-03-11 01:34:01.177255"], ["authentication_token", "ZjtxvhBfgACx6sHF2Unx"], ["created_at", "2016-03-11 01:34:01.180503"], ["updated_at", "2016-03-11 01:34:01.180503"]]  (12.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:01.200437"], ["updated_at", "2016-03-11 01:34:01.200437"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:01.216211"], ["updated_at", "2016-03-11 01:34:01.216211"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test6@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:01.264761"], ["current_sign_in_at", "2016-03-11 01:34:01.264761"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:01.266192"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (3.5ms) Completed 200 OK in 25ms (Views: 16.4ms | ActiveRecord: 0.6ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (13.1ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:01 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sBz_Vgk7pGecZeHUiB8_"]] Mtdevise::User Load (0.8ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "9ce7232db0fb4e2cee1c02e64f73c082cba189be41cb07008a084e4daedfdb53"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$2tiWTFlVIwA.E62s/tTtTOvQ6TjxLOieqKx6mbGwqZpE8rGieIodq"], ["authentication_token", "sBz_Vgk7pGecZeHUiB8_"], ["created_at", "2016-03-11 01:34:01.577186"], ["updated_at", "2016-03-11 01:34:01.577186"], ["confirmation_token", "piX-Y6GzxNpKAmcHkMqE"], ["confirmation_sent_at", "2016-03-11 01:34:01.829729"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (10.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 544.3ms Sent mail to mtdevise@example.com (54.1ms) Date: Fri, 11 Mar 2016 01:34:02 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e2208a6ede6_c787b70f0238a9@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:02.469142"], ["updated_at", "2016-03-11 01:34:02.469142"]]  (20.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:02.495171"], ["updated_at", "2016-03-11 01:34:02.495171"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:34:02.510894"], ["updated_at", "2016-03-11 01:34:02.511938"], ["id", 1]]  (10.7ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:02.530862"], ["current_sign_in_at", "2016-03-11 01:34:02.530862"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:02.531842"], ["id", 1]]  (12.2ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 1034ms (ActiveRecord: 61.8ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (0.8ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.3ms)  (16.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RyZDu5L8uFiKScsF3HxG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$V24U1tR60aCckM/qdQaBjuWkmMrzjH82Nuv158hYswtbqtPuJA256"], ["confirmed_at", "2016-03-11 01:34:02.641194"], ["authentication_token", "RyZDu5L8uFiKScsF3HxG"], ["created_at", "2016-03-11 01:34:02.647354"], ["updated_at", "2016-03-11 01:34:02.647354"]]  (13.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:02.670630"], ["updated_at", "2016-03-11 01:34:02.670630"]]  (13.7ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:02.690854"], ["updated_at", "2016-03-11 01:34:02.690854"]]  (12.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.1ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.1ms) Completed 200 OK in 31ms (Views: 12.7ms | ActiveRecord: 1.9ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (25.9ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.4ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:02 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.8ms) Completed 200 OK in 23ms (Views: 7.4ms | ActiveRecord: 1.7ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.8ms) Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.6ms) Completed 200 OK in 25ms (Views: 9.6ms | ActiveRecord: 1.6ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:34:03.124817"], ["updated_at", "2016-03-11 01:34:03.124817"]]  (8.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.8ms) Completed 200 OK in 32ms (Views: 11.6ms | ActiveRecord: 2.2ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1W3JnWxZLKskqnwHkusz"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$pH/UZjPbmOEsmdWtiViFweCSV3UB7xD.nqIHuzAbVXLCXPyQZUsCa"], ["confirmed_at", "2016-03-11 01:34:03.287728"], ["authentication_token", "1W3JnWxZLKskqnwHkusz"], ["created_at", "2016-03-11 01:34:03.291034"], ["updated_at", "2016-03-11 01:34:03.291034"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.3ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:03.332614"], ["current_sign_in_at", "2016-03-11 01:34:03.332614"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:03.333825"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zXqVtAajEM6sWj2QM8Bq"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$mdg8iOt4CpkpTyAS8OHE6uUxi6JwYiC5y2CuBuhZy21OlZjRkqHiq"], ["confirmed_at", "2016-03-11 01:34:03.472062"], ["authentication_token", "zXqVtAajEM6sWj2QM8Bq"], ["created_at", "2016-03-11 01:34:03.474637"], ["updated_at", "2016-03-11 01:34:03.474637"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:03.487612"], ["updated_at", "2016-03-11 01:34:03.487612"]]  (9.6ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:03.502128"], ["updated_at", "2016-03-11 01:34:03.502128"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:03.543635"], ["current_sign_in_at", "2016-03-11 01:34:03.543635"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:03.544631"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms)  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hyPKkyxX8B8StcpxTkCj"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$4gBsRcxT/46jBB2g/XDGJuXXMRg5OxVKe.55eHXUzz0VbtNkgLtZ2"], ["confirmed_at", "2016-03-11 01:34:03.638029"], ["authentication_token", "hyPKkyxX8B8StcpxTkCj"], ["created_at", "2016-03-11 01:34:03.640769"], ["updated_at", "2016-03-11 01:34:03.640769"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:03.655134"], ["updated_at", "2016-03-11 01:34:03.655134"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:03.667902"], ["updated_at", "2016-03-11 01:34:03.667902"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.1ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Hj-y7CmcKDsNGbvpyTiB"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "5c091281a2d981bea9bc2bed4425f83dae68b2b1e8b97b6eaf00799a2d8c2868"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$zqAqBwvyyKNmKM8ZmNKzqO6pC0GUANnxHIKxkA18bx41nZVTPKGKy"], ["authentication_token", "Hj-y7CmcKDsNGbvpyTiB"], ["created_at", "2016-03-11 01:34:03.816458"], ["updated_at", "2016-03-11 01:34:03.816458"], ["confirmation_token", "9vUa7YgheJw5nCUNorXJ"], ["confirmation_sent_at", "2016-03-11 01:34:03.817354"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 8.0ms Sent mail to user@example.com (3.4ms) Date: Fri, 11 Mar 2016 01:34:03 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2208bca7e6_c787b70f0239e7@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:03.831607"], ["updated_at", "2016-03-11 01:34:03.831607"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:03.847321"], ["updated_at", "2016-03-11 01:34:03.847321"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:34:03.858228"], ["updated_at", "2016-03-11 01:34:03.858816"], ["id", 1]]  (8.8ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xR1LTevJb5aiKj_2K2Cq"]] SQL (1.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$T/klIoRXAZNPC8.BHM.jNukOMitUqs6rjyFNiqefjjkYkCcj8OaQW"], ["confirmed_at", "2016-03-11 01:34:03.971381"], ["authentication_token", "xR1LTevJb5aiKj_2K2Cq"], ["created_at", "2016-03-11 01:34:03.974689"], ["updated_at", "2016-03-11 01:34:03.974689"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:04.013050"], ["current_sign_in_at", "2016-03-11 01:34:04.013050"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:04.013981"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "G1V2KkaMayqaPqyjGp1F"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$ZddZ6Vjatwg.MghBuhKrc.C2zqcSDWddbCworHV3cbU5QdbVVDvKy"], ["confirmed_at", "2016-03-11 01:34:04.410195"], ["authentication_token", "G1V2KkaMayqaPqyjGp1F"], ["created_at", "2016-03-11 01:34:04.413165"], ["updated_at", "2016-03-11 01:34:04.413165"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:04.427866"], ["updated_at", "2016-03-11 01:34:04.427866"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:04.445323"], ["updated_at", "2016-03-11 01:34:04.445323"]]  (8.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_NJu3higLRjMLuMeVnBL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$l52HwS5NFtOcKlROu0uLEeo5iLuEGqUdcF28onuUH10DAFH7PNvbG"], ["confirmed_at", "2016-03-11 01:34:04.457809"], ["authentication_token", "_NJu3higLRjMLuMeVnBL"], ["created_at", "2016-03-11 01:34:04.461601"], ["updated_at", "2016-03-11 01:34:04.461601"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 01:34:04.474354"], ["updated_at", "2016-03-11 01:34:04.474354"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:34:04.485302"], ["updated_at", "2016-03-11 01:34:04.485302"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:34:04.502563"], ["updated_at", "2016-03-11 01:34:04.502563"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:34:04.514538"], ["updated_at", "2016-03-11 01:34:04.514538"]]  (6.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.3ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:04.546913"], ["current_sign_in_at", "2016-03-11 01:34:04.546913"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:04.547988"], ["id", 1]]  (9.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.3ms)  (11.7ms) DELETE FROM "things";  (2.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (44.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LESy9a61P9cvGKQzxqeC"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$QI8Lstzg8sxXZMtduCaTIu7/PUF9rJAao9VqXZp6KPsjAskPkxCkS"], ["confirmed_at", "2016-03-11 01:34:04.715282"], ["authentication_token", "LESy9a61P9cvGKQzxqeC"], ["created_at", "2016-03-11 01:34:04.719623"], ["updated_at", "2016-03-11 01:34:04.719623"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:04.737074"], ["updated_at", "2016-03-11 01:34:04.737074"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:04.751099"], ["updated_at", "2016-03-11 01:34:04.751099"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JdWt9bEf1XbBdPJCXVuX"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$QbdH8LLD5T1Xi9osL/uu6.pZwCnUxso4cYaPC7VVT06bPVSxIt1Q6"], ["confirmed_at", "2016-03-11 01:34:04.765145"], ["authentication_token", "JdWt9bEf1XbBdPJCXVuX"], ["created_at", "2016-03-11 01:34:04.770082"], ["updated_at", "2016-03-11 01:34:04.770082"]]  (8.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 2], ["created_at", "2016-03-11 01:34:04.783950"], ["updated_at", "2016-03-11 01:34:04.783950"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:34:04.796423"], ["updated_at", "2016-03-11 01:34:04.796423"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:34:04.808227"], ["updated_at", "2016-03-11 01:34:04.808227"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:34:04.819878"], ["updated_at", "2016-03-11 01:34:04.819878"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:04.859909"], ["current_sign_in_at", "2016-03-11 01:34:04.859909"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:04.861147"], ["id", 2]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:34:04 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2UbLJ1QueMo44EUKx7WF"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$GMwyvOP0tEiauCThafyWhOzamog1MDLzYQ2O9MDMoPQi1prA7gazO"], ["confirmed_at", "2016-03-11 01:34:05.007076"], ["authentication_token", "2UbLJ1QueMo44EUKx7WF"], ["created_at", "2016-03-11 01:34:05.010290"], ["updated_at", "2016-03-11 01:34:05.010290"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:05.026540"], ["updated_at", "2016-03-11 01:34:05.026540"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:05.038641"], ["updated_at", "2016-03-11 01:34:05.038641"]]  (10.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:05.075897"], ["current_sign_in_at", "2016-03-11 01:34:05.075897"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:05.076879"], ["id", 1]]  (11.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.2ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test14"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.6ms) Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (14.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "19RoyzwC3K6Y5iCdhNzL"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$gjTJBeEbpfptqGOM2hB2peqz.N5dATe/wtPow1xaQiBObWSOUJUGu"], ["confirmed_at", "2016-03-11 01:34:05.215750"], ["authentication_token", "19RoyzwC3K6Y5iCdhNzL"], ["created_at", "2016-03-11 01:34:05.218646"], ["updated_at", "2016-03-11 01:34:05.218646"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:05.233607"], ["updated_at", "2016-03-11 01:34:05.233607"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:05.245781"], ["updated_at", "2016-03-11 01:34:05.245781"]]  (7.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test20@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:05.282815"], ["current_sign_in_at", "2016-03-11 01:34:05.282815"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:05.283733"], ["id", 1]]  (9.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 17ms (ActiveRecord: 9.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 01:34:05.337254"], ["updated_at", "2016-03-11 01:34:05.337254"]]  (11.5ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 01:34:05.355638"], ["updated_at", "2016-03-11 01:34:05.355638"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 01:34:05.370747"], ["id", 2]]  (8.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 51ms (ActiveRecord: 32.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "UVzd3NbjnF-jfER6Tb-D"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$rYaRGw99TSbAPQM670rSfudR87iQ/jsS/xIESWsz4OPB8vmBHs/mq"], ["confirmed_at", "2016-03-11 01:34:05.459023"], ["authentication_token", "UVzd3NbjnF-jfER6Tb-D"], ["created_at", "2016-03-11 01:34:05.462205"], ["updated_at", "2016-03-11 01:34:05.462205"]]  (7.2ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:05.474586"], ["updated_at", "2016-03-11 01:34:05.474586"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:05.485933"], ["updated_at", "2016-03-11 01:34:05.485933"]]  (7.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test22@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:05.520641"], ["current_sign_in_at", "2016-03-11 01:34:05.520641"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:05.521486"], ["id", 1]]  (8.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 17ms (ActiveRecord: 9.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.3ms)  (7.6ms) DELETE FROM "things";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LxTzR5ySgv1G83r2efkn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$DJmPkrWNt2kushxLXqpJ4OxG4N6JGEax5GWCHbxNbUvbQESqIQq6y"], ["confirmed_at", "2016-03-11 01:34:05.642785"], ["authentication_token", "LxTzR5ySgv1G83r2efkn"], ["created_at", "2016-03-11 01:34:05.647263"], ["updated_at", "2016-03-11 01:34:05.647263"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 01:34:05.663513"], ["updated_at", "2016-03-11 01:34:05.663513"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:34:05.677625"], ["updated_at", "2016-03-11 01:34:05.677625"]]  (8.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:34:05.713435"], ["current_sign_in_at", "2016-03-11 01:34:05.713435"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:34:05.714351"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:34:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Completed 200 OK in 15ms (Views: 5.9ms | ActiveRecord: 1.4ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (12.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 471ms (Views: 447.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:11 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (17.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (277.3ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.8ms) Completed 200 OK in 389ms (Views: 293.5ms | ActiveRecord: 3.4ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:40:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (1.8ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (11.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (57.1ms) Completed 500 Internal Server Error in 234ms (ActiveRecord: 3.6ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:12 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.0ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:40:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "krxSRegHWiBb_1Hta3Q7"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "ff5c461be19955347e5b6cdb7803514eb37a2e4d3fb8b1bdafc6012af0feaa83"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$.rDaq8gJSqW2fSAgXCo3WOlnA6NNaqkHbR9VAxpPN7CkBFp1Gh2RK"], ["authentication_token", "krxSRegHWiBb_1Hta3Q7"], ["created_at", "2016-03-11 01:40:12.440589"], ["updated_at", "2016-03-11 01:40:12.440589"], ["confirmation_token", "aMHCxHoxn384ERwziQza"], ["confirmation_sent_at", "2016-03-11 01:40:12.703577"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (6.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 311.1ms Sent mail to mtdevise@example.com (57.7ms) Date: Fri, 11 Mar 2016 01:40:13 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e221fd18cf6_cccb7b0d830ed@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:13.119679"], ["updated_at", "2016-03-11 01:40:13.119679"]]  (15.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:13.210550"], ["updated_at", "2016-03-11 01:40:13.210550"]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:40:13.227420"], ["updated_at", "2016-03-11 01:40:13.228126"], ["id", 1]]  (11.2ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:13.245715"], ["current_sign_in_at", "2016-03-11 01:40:13.245715"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:13.246390"], ["id", 1]]  (8.1ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 849ms (ActiveRecord: 54.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (28.7ms) Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.5ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (27.5ms) Completed 500 Internal Server Error in 45ms (ActiveRecord: 1.4ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8bfy7RT8fPqhkeri7agc"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$yJy0q5lfzWTLcKR/lKz7JO5tnmg9bqKoeGn5XStAbizrFp24odsoa"], ["confirmed_at", "2016-03-11 01:40:13.491252"], ["authentication_token", "8bfy7RT8fPqhkeri7agc"], ["created_at", "2016-03-11 01:40:13.493849"], ["updated_at", "2016-03-11 01:40:13.493849"]]  (7.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:13.506478"], ["updated_at", "2016-03-11 01:40:13.506478"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:13.517587"], ["updated_at", "2016-03-11 01:40:13.517587"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (27.0ms) Completed 500 Internal Server Error in 48ms (ActiveRecord: 1.8ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:40:13.679284"], ["updated_at", "2016-03-11 01:40:13.679284"]]  (9.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (29.2ms) Completed 500 Internal Server Error in 70ms (ActiveRecord: 2.3ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "b28y_PcUzgFpyNsyFxP5"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$DlTDcYzvirX8JI99fIKGa.QR87G9Wn5h9sH7r1tcHhmlcguqfjIjG"], ["confirmed_at", "2016-03-11 01:40:13.851089"], ["authentication_token", "b28y_PcUzgFpyNsyFxP5"], ["created_at", "2016-03-11 01:40:13.854533"], ["updated_at", "2016-03-11 01:40:13.854533"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (32.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 46ms (Views: 42.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:13.936516"], ["current_sign_in_at", "2016-03-11 01:40:13.936516"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:13.937426"], ["id", 1]]  (9.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 29ms (ActiveRecord: 9.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:13 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (1.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (9.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (42.1ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 1.9ms)  (12.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mKUGvhiECrxH7qHjqxon"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "fa64d3753a398b04bedfa111a85a61d36d43ef5ebfe0aa495c4a3e9f2214807d"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$4pgGIlSSGJ4Ts4RTWnyQ0uyveEYF28.6afrxoHuqaG1Po.BA3Oypy"], ["authentication_token", "mKUGvhiECrxH7qHjqxon"], ["created_at", "2016-03-11 01:40:14.126696"], ["updated_at", "2016-03-11 01:40:14.126696"], ["confirmation_token", "iRU8zfQS6y3p1ZprK2qv"], ["confirmation_sent_at", "2016-03-11 01:40:14.127975"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.8ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.7ms Sent mail to user@example.com (2.5ms) Date: Fri, 11 Mar 2016 01:40:14 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e221fe2172a_cccb7b0d831cf@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:14.138965"], ["updated_at", "2016-03-11 01:40:14.138965"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:14.152798"], ["updated_at", "2016-03-11 01:40:14.152798"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:40:14.163273"], ["updated_at", "2016-03-11 01:40:14.163949"], ["id", 1]]  (9.3ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (7.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kAhdQsRGswHxU1_3vQg7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$IdC8SBgLbOV7Ew8LnQfkMeSjaWtGP2/5ZtZ620dlXDTGq0ReB/mQK"], ["confirmed_at", "2016-03-11 01:40:14.294834"], ["authentication_token", "kAhdQsRGswHxU1_3vQg7"], ["created_at", "2016-03-11 01:40:14.298104"], ["updated_at", "2016-03-11 01:40:14.298104"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:14.314095"], ["updated_at", "2016-03-11 01:40:14.314095"]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:14.326939"], ["updated_at", "2016-03-11 01:40:14.326939"]]  (10.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:14.373559"], ["current_sign_in_at", "2016-03-11 01:40:14.373559"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:14.374682"], ["id", 1]]  (10.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (36.4ms) Completed 500 Internal Server Error in 43ms (ActiveRecord: 0.5ms)  (12.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oXDSW5A7XMrQCEVQ3AJs"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$oslvr3jQ1zfXA2efOzPV0Onq1XeaTOE6RTX8qcJgEJy7g.0ijn052"], ["confirmed_at", "2016-03-11 01:40:14.507885"], ["authentication_token", "oXDSW5A7XMrQCEVQ3AJs"], ["created_at", "2016-03-11 01:40:14.510512"], ["updated_at", "2016-03-11 01:40:14.510512"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:14.526727"], ["updated_at", "2016-03-11 01:40:14.526727"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:14.537899"], ["updated_at", "2016-03-11 01:40:14.537899"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:14.573996"], ["current_sign_in_at", "2016-03-11 01:40:14.573996"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:14.575323"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (36.8ms) Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.3ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "nZFc74Jtt_fi8_k87pix"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$PCg1IvbWGGGxvORpLMLte.FdFmoS5gHTX7Gy.iFyFIhQSMvbfVeXS"], ["confirmed_at", "2016-03-11 01:40:14.703923"], ["authentication_token", "nZFc74Jtt_fi8_k87pix"], ["created_at", "2016-03-11 01:40:14.706817"], ["updated_at", "2016-03-11 01:40:14.706817"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:14.721942"], ["updated_at", "2016-03-11 01:40:14.721942"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:14.733398"], ["updated_at", "2016-03-11 01:40:14.733398"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test6@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:14.770044"], ["current_sign_in_at", "2016-03-11 01:40:14.770044"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:14.771004"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (41.8ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.3ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LimzknV2D_1yK6gLkh3K"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$PXTedaqvrrfPLUyEonLzVuyMZ6HvQ1zlIvA2Nr8OTVaObQdXiwEqm"], ["confirmed_at", "2016-03-11 01:40:14.903105"], ["authentication_token", "LimzknV2D_1yK6gLkh3K"], ["created_at", "2016-03-11 01:40:14.906216"], ["updated_at", "2016-03-11 01:40:14.906216"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:14.922013"], ["updated_at", "2016-03-11 01:40:14.922013"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:14.934154"], ["updated_at", "2016-03-11 01:40:14.934154"]]  (7.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:14.969222"], ["current_sign_in_at", "2016-03-11 01:40:14.969222"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:14.970297"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (44.0ms) Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.3ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bVddQM-T96R2ptr51vns"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$8S2oaF75oaZcRq2c0c.GfuA.nZrHtuTHgK3E6xiTqLhp2rX2BpJzi"], ["confirmed_at", "2016-03-11 01:40:15.135685"], ["authentication_token", "bVddQM-T96R2ptr51vns"], ["created_at", "2016-03-11 01:40:15.138683"], ["updated_at", "2016-03-11 01:40:15.138683"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:15.153355"], ["updated_at", "2016-03-11 01:40:15.153355"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:15.166235"], ["updated_at", "2016-03-11 01:40:15.166235"]]  (7.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (65.7ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Rt4sGUsfdAR_KoGrhfN9"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$ISUs9oKiEYt.MaZWNWqzUe9ucU38l8F9I0cprAuI2LizioIbUOpEe"], ["confirmed_at", "2016-03-11 01:40:15.338997"], ["authentication_token", "Rt4sGUsfdAR_KoGrhfN9"], ["created_at", "2016-03-11 01:40:15.342090"], ["updated_at", "2016-03-11 01:40:15.342090"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:15.359370"], ["updated_at", "2016-03-11 01:40:15.359370"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:15.374070"], ["updated_at", "2016-03-11 01:40:15.374070"]]  (7.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:15.410803"], ["current_sign_in_at", "2016-03-11 01:40:15.410803"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:15.411756"], ["id", 1]]  (11.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (49.4ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 0.3ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.4ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8ectEVMHxn7jEZykn1mZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$vlQZMdhpGCv04KXPgdVIIuwMKo7ChrBlfCXNXRXwBB7Hjwd8ifL4q"], ["confirmed_at", "2016-03-11 01:40:15.594800"], ["authentication_token", "8ectEVMHxn7jEZykn1mZ"], ["created_at", "2016-03-11 01:40:15.598394"], ["updated_at", "2016-03-11 01:40:15.598394"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:15.614674"], ["updated_at", "2016-03-11 01:40:15.614674"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:15.628687"], ["updated_at", "2016-03-11 01:40:15.628687"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (55.4ms) Completed 500 Internal Server Error in 63ms (ActiveRecord: 0.1ms)  (12.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2TvbGKpD71BsSZY6hKsb"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$XhjPKdyy39v4ux0ta5QQQucGvxtK8dwwtkSJTy0qeUtt.DMcmv6im"], ["confirmed_at", "2016-03-11 01:40:15.794987"], ["authentication_token", "2TvbGKpD71BsSZY6hKsb"], ["created_at", "2016-03-11 01:40:15.798353"], ["updated_at", "2016-03-11 01:40:15.798353"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:15.813952"], ["updated_at", "2016-03-11 01:40:15.813952"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:15.825392"], ["updated_at", "2016-03-11 01:40:15.825392"]]  (11.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:15 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (51.3ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.2ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "tv8Qop6DY3eEZv1uhTh-"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$JkWo3B1dTAbAfNJO/K0rk.njM37UYVS6wTMI0p29ANp9WHpdwpecS"], ["confirmed_at", "2016-03-11 01:40:15.983793"], ["authentication_token", "tv8Qop6DY3eEZv1uhTh-"], ["created_at", "2016-03-11 01:40:15.987014"], ["updated_at", "2016-03-11 01:40:15.987014"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:16.003992"], ["updated_at", "2016-03-11 01:40:16.003992"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:16.017954"], ["updated_at", "2016-03-11 01:40:16.017954"]]  (7.1ms) commit transaction  (0.5ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bTydWZhGAYAJpbfcx2CS"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$qsHnalnXnqj4/eVeu4bsU.omyZtuLW7uPgoslHWact6OBCLOjINC2"], ["confirmed_at", "2016-03-11 01:40:16.029820"], ["authentication_token", "bTydWZhGAYAJpbfcx2CS"], ["created_at", "2016-03-11 01:40:16.033004"], ["updated_at", "2016-03-11 01:40:16.033004"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 01:40:16.047748"], ["updated_at", "2016-03-11 01:40:16.047748"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:40:16.065429"], ["updated_at", "2016-03-11 01:40:16.065429"]]  (7.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (76.5ms) Completed 500 Internal Server Error in 87ms (ActiveRecord: 0.2ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9Ty-jnmR1UPrixr5Ncx4"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$eXB8lHt7ZKMT1uimtBhyJO62KGo5a6iQoyERBxPxrYACrTK9CS7Zy"], ["confirmed_at", "2016-03-11 01:40:16.246852"], ["authentication_token", "9Ty-jnmR1UPrixr5Ncx4"], ["created_at", "2016-03-11 01:40:16.250530"], ["updated_at", "2016-03-11 01:40:16.250530"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:16.266342"], ["updated_at", "2016-03-11 01:40:16.266342"]]  (7.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:16.279993"], ["updated_at", "2016-03-11 01:40:16.279993"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Mtdevise::Account Load (0.6ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (66.0ms) Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.2ms)  (12.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.1ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (52.4ms) Completed 500 Internal Server Error in 59ms (ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.3ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7NtEbTwgxwkkrqQnuKgF"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$IkUMHKdLVjU2aiQRBOdXQ.389FKpxQiaNJEORpqeERM7tHC5VwbXG"], ["confirmed_at", "2016-03-11 01:40:16.740641"], ["authentication_token", "7NtEbTwgxwkkrqQnuKgF"], ["created_at", "2016-03-11 01:40:16.744046"], ["updated_at", "2016-03-11 01:40:16.744046"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:16.783557"], ["current_sign_in_at", "2016-03-11 01:40:16.783557"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:16.784359"], ["id", 1]]  (12.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:16 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (43.8ms) Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.5ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-bzCYCLop5ovETvDZHbi"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$tNvfMl0avdSwqVtxSciVfeYryd457w5Quza5xeN/9bm7YEb3l7AHG"], ["confirmed_at", "2016-03-11 01:40:17.034362"], ["authentication_token", "-bzCYCLop5ovETvDZHbi"], ["created_at", "2016-03-11 01:40:17.045912"], ["updated_at", "2016-03-11 01:40:17.045912"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:17.061322"], ["updated_at", "2016-03-11 01:40:17.061322"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:17.074055"], ["updated_at", "2016-03-11 01:40:17.074055"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 42.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:17.149489"], ["current_sign_in_at", "2016-03-11 01:40:17.149489"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:17.150423"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (45.0ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.4ms)  (14.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (53.7ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xvd-3wg5KDRseoHjFum2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$mfrfgcyw1xGHkZmkg.Csn.nHms9v.9PALS8CvApghvOKf7Tq80hYm"], ["confirmed_at", "2016-03-11 01:40:17.463041"], ["authentication_token", "xvd-3wg5KDRseoHjFum2"], ["created_at", "2016-03-11 01:40:17.465965"], ["updated_at", "2016-03-11 01:40:17.465965"]]  (7.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:17.478318"], ["updated_at", "2016-03-11 01:40:17.478318"]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:17.488836"], ["updated_at", "2016-03-11 01:40:17.488836"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zxgFWhUjHb8LKkJ1e8KN"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$AKWmL8mO1T8v19khZ5P.Wu6nVFeb8evgAP963atk3w0i9Ibz0uX5S"], ["confirmed_at", "2016-03-11 01:40:17.501839"], ["authentication_token", "zxgFWhUjHb8LKkJ1e8KN"], ["created_at", "2016-03-11 01:40:17.504262"], ["updated_at", "2016-03-11 01:40:17.504262"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 01:40:17.518217"], ["updated_at", "2016-03-11 01:40:17.518217"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:40:17.528980"], ["updated_at", "2016-03-11 01:40:17.528980"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:40:17.546846"], ["updated_at", "2016-03-11 01:40:17.546846"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:40:17.558689"], ["updated_at", "2016-03-11 01:40:17.558689"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:17.596506"], ["current_sign_in_at", "2016-03-11 01:40:17.596506"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:17.597417"], ["id", 2]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (38.6ms) Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.5ms)  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "51xC79R54rcrNzSP4gPc"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$iq.ITraecy3PinXQYbDt.uuQKhWO3onf4NctMsOHxBKjkdYGlL7vO"], ["confirmed_at", "2016-03-11 01:40:17.730228"], ["authentication_token", "51xC79R54rcrNzSP4gPc"], ["created_at", "2016-03-11 01:40:17.732921"], ["updated_at", "2016-03-11 01:40:17.732921"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:40:17.747812"], ["updated_at", "2016-03-11 01:40:17.747812"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:40:17.760614"], ["updated_at", "2016-03-11 01:40:17.760614"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KkibjLgpBDZzLmx2uCHn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$oiRseKeOE8lhJlvcFoJ82eqBYUIddE3N7td1b53zPwNQLCQoSDG.S"], ["confirmed_at", "2016-03-11 01:40:17.773331"], ["authentication_token", "KkibjLgpBDZzLmx2uCHn"], ["created_at", "2016-03-11 01:40:17.775720"], ["updated_at", "2016-03-11 01:40:17.775720"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 01:40:17.790555"], ["updated_at", "2016-03-11 01:40:17.790555"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:40:17.801753"], ["updated_at", "2016-03-11 01:40:17.801753"]]  (8.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:40:17.812395"], ["updated_at", "2016-03-11 01:40:17.812395"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:40:17.823767"], ["updated_at", "2016-03-11 01:40:17.823767"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:40:17.858341"], ["current_sign_in_at", "2016-03-11 01:40:17.858341"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:40:17.859314"], ["id", 1]]  (9.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:40:17 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered layouts/phcnotifi/components/_notifications.html.erb (35.1ms) Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (18.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (14.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "V6Bz2EAHxMfyTMsbmzxL"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$TpKoCiNJmeV4tPHTXEThneR0dt2j/JUwnAbzmdspneXPiGTuH8Iou"], ["confirmed_at", "2016-03-11 01:42:48.635655"], ["authentication_token", "V6Bz2EAHxMfyTMsbmzxL"], ["created_at", "2016-03-11 01:42:48.715863"], ["updated_at", "2016-03-11 01:42:48.715863"]]  (19.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:48.774829"], ["updated_at", "2016-03-11 01:42:48.774829"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:48.881492"], ["updated_at", "2016-03-11 01:42:48.881492"]]  (11.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (257.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (4.2ms) Completed 200 OK in 705ms (Views: 668.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:49 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:49.653214"], ["current_sign_in_at", "2016-03-11 01:42:49.653214"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:49.654263"], ["id", 1]]  (13.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 49ms (ActiveRecord: 14.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:49 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (3.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (20.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (63.0ms) Completed 500 Internal Server Error in 107ms (ActiveRecord: 3.9ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1Hac6bKn9vQ7an_P-z6k"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$V8GJ4Po7ipsY25RjkfTIBOL6fBmgkw1.9lw2NtumZg4TuQDCCBXZC"], ["confirmed_at", "2016-03-11 01:42:49.886735"], ["authentication_token", "1Hac6bKn9vQ7an_P-z6k"], ["created_at", "2016-03-11 01:42:49.889674"], ["updated_at", "2016-03-11 01:42:49.889674"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:49.907162"], ["updated_at", "2016-03-11 01:42:49.907162"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:49.924783"], ["updated_at", "2016-03-11 01:42:49.924783"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:49 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:49.961538"], ["current_sign_in_at", "2016-03-11 01:42:49.961538"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:49.962592"], ["id", 1]]  (12.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:49 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (46.2ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.3ms)  (13.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2B-REkdes55t_2QCZFv5"]] SQL (1.1ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$aBlJZsnA9Yc/eb0rHhxZ0ebtQm3MOsWqHnjlOYZSXjLllgpNbHZhC"], ["confirmed_at", "2016-03-11 01:42:50.126499"], ["authentication_token", "2B-REkdes55t_2QCZFv5"], ["created_at", "2016-03-11 01:42:50.130338"], ["updated_at", "2016-03-11 01:42:50.130338"]]  (13.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:50.150755"], ["updated_at", "2016-03-11 01:42:50.150755"]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:50.167162"], ["updated_at", "2016-03-11 01:42:50.167162"]]  (10.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:50.211100"], ["current_sign_in_at", "2016-03-11 01:42:50.211100"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:50.212478"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.9ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.4ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9MNH5jxGsB-TYYfz8y6s"]] SQL (0.9ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$7GYXXn/IgTGDSzPBjaFzzeEiDXG2AKu1aFRYOwve86IXymbEPbp/K"], ["confirmed_at", "2016-03-11 01:42:50.378772"], ["authentication_token", "9MNH5jxGsB-TYYfz8y6s"], ["created_at", "2016-03-11 01:42:50.382367"], ["updated_at", "2016-03-11 01:42:50.382367"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:50.401030"], ["updated_at", "2016-03-11 01:42:50.401030"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:50.417620"], ["updated_at", "2016-03-11 01:42:50.417620"]]  (12.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:50.474743"], ["current_sign_in_at", "2016-03-11 01:42:50.474743"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:50.475699"], ["id", 1]]  (12.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (39.5ms) Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.4ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (16.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "gYiJsQvpbZByKqSdWpzx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$GxxJSOOAdW8OYNath1UPNugIniPk0HxhYwbtozxV04oRknmsDjGiK"], ["confirmed_at", "2016-03-11 01:42:50.671311"], ["authentication_token", "gYiJsQvpbZByKqSdWpzx"], ["created_at", "2016-03-11 01:42:50.675125"], ["updated_at", "2016-03-11 01:42:50.675125"]]  (17.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:50.701231"], ["updated_at", "2016-03-11 01:42:50.701231"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:50.715263"], ["updated_at", "2016-03-11 01:42:50.715263"]]  (11.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.4ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:50.806459"], ["current_sign_in_at", "2016-03-11 01:42:50.806459"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:50.808260"], ["id", 1]]  (12.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 13.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (2.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (60.2ms) Completed 500 Internal Server Error in 71ms (ActiveRecord: 0.6ms)  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:50 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (85.4ms) Completed 500 Internal Server Error in 96ms (ActiveRecord: 0.0ms)  (16.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "XvaoSrJ7zWh1XzhVTXNg"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$4Wej4ALlu33RrCoUEcjt4uWYxubMNky1xetQUaJV9AKUgvK8QtFNW"], ["confirmed_at", "2016-03-11 01:42:51.212943"], ["authentication_token", "XvaoSrJ7zWh1XzhVTXNg"], ["created_at", "2016-03-11 01:42:51.218396"], ["updated_at", "2016-03-11 01:42:51.218396"]]  (12.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:51.240004"], ["updated_at", "2016-03-11 01:42:51.240004"]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:51.259931"], ["updated_at", "2016-03-11 01:42:51.259931"]]  (11.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "AzSC3Ti63mEmhW1t-coH"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$a.ea00I6Dy4G3yl..1Qbku5TgsFN3NI59OjRc5g/dPa/CIfelfWyW"], ["confirmed_at", "2016-03-11 01:42:51.278321"], ["authentication_token", "AzSC3Ti63mEmhW1t-coH"], ["created_at", "2016-03-11 01:42:51.285123"], ["updated_at", "2016-03-11 01:42:51.285123"]]  (18.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 2], ["created_at", "2016-03-11 01:42:51.313494"], ["updated_at", "2016-03-11 01:42:51.313494"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:42:51.334833"], ["updated_at", "2016-03-11 01:42:51.334833"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:42:51.361781"], ["updated_at", "2016-03-11 01:42:51.361781"]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:42:51.385347"], ["updated_at", "2016-03-11 01:42:51.385347"]]  (11.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:51.443306"], ["current_sign_in_at", "2016-03-11 01:42:51.443306"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:51.444837"], ["id", 2]]  (11.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (59.3ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 0.5ms)  (17.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.6ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "qrF6r1oxSRxQLbT7HRLK"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$q.1/2h4vAAgHSunOLNqjk.7cP1W1sxpivlBgOs1MxIM4Spkst2t9y"], ["confirmed_at", "2016-03-11 01:42:51.629982"], ["authentication_token", "qrF6r1oxSRxQLbT7HRLK"], ["created_at", "2016-03-11 01:42:51.634940"], ["updated_at", "2016-03-11 01:42:51.634940"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.9ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:51.655025"], ["updated_at", "2016-03-11 01:42:51.655025"]]  (15.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:51.678070"], ["updated_at", "2016-03-11 01:42:51.678070"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JbBwsYRr7-2CErU_Tkho"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$otCcZAcd2PBtcCDerqw5DecYTY/kA1PNywyF0iGyA7PFFwedzw3E6"], ["confirmed_at", "2016-03-11 01:42:51.694461"], ["authentication_token", "JbBwsYRr7-2CErU_Tkho"], ["created_at", "2016-03-11 01:42:51.698092"], ["updated_at", "2016-03-11 01:42:51.698092"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 01:42:51.716363"], ["updated_at", "2016-03-11 01:42:51.716363"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:42:51.734699"], ["updated_at", "2016-03-11 01:42:51.734699"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:42:51.754237"], ["updated_at", "2016-03-11 01:42:51.754237"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:42:51.769054"], ["updated_at", "2016-03-11 01:42:51.769054"]]  (8.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (8.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 37ms (Views: 34.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.4ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:51.854743"], ["current_sign_in_at", "2016-03-11 01:42:51.854743"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:51.856296"], ["id", 1]]  (11.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 29ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:51 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (2.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (66.8ms) Completed 500 Internal Server Error in 79ms (ActiveRecord: 0.5ms)  (11.9ms) DELETE FROM "things";  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.5ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hsjiW7-JziyWmQjzdmgr"]] SQL (0.9ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$TX07pbxMosdF1KppaPjqsuQFVbu.wk9UokLrC.WLf0YIo8yvm4s3a"], ["confirmed_at", "2016-03-11 01:42:52.104180"], ["authentication_token", "hsjiW7-JziyWmQjzdmgr"], ["created_at", "2016-03-11 01:42:52.109097"], ["updated_at", "2016-03-11 01:42:52.109097"]]  (14.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:52.166103"], ["current_sign_in_at", "2016-03-11 01:42:52.166103"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:52.167695"], ["id", 1]]  (13.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 26ms (ActiveRecord: 14.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (61.5ms) Completed 500 Internal Server Error in 72ms (ActiveRecord: 0.5ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (59.2ms) Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.0ms)  (15.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (13.6ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (13.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NRqsRrvyze7RCPzHNnRR"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$0RsTU6OId907pUPqC5QtGOoHmgObTeMvIm/YhVZXCiSVPGYbJFN7S"], ["confirmed_at", "2016-03-11 01:42:52.703783"], ["authentication_token", "NRqsRrvyze7RCPzHNnRR"], ["created_at", "2016-03-11 01:42:52.706767"], ["updated_at", "2016-03-11 01:42:52.706767"]]  (93.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:52.808060"], ["updated_at", "2016-03-11 01:42:52.808060"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:52.825095"], ["updated_at", "2016-03-11 01:42:52.825095"]]  (12.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:52 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (60.3ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 0.1ms)  (13.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DDgjtfePdyt8sijkTUnM"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$95WWf5En6ub9mv0.CoONQ.Fasfe0bFS1xStWTtEcOyydGJlye1uJm"], ["confirmed_at", "2016-03-11 01:42:53.005791"], ["authentication_token", "DDgjtfePdyt8sijkTUnM"], ["created_at", "2016-03-11 01:42:53.009301"], ["updated_at", "2016-03-11 01:42:53.009301"]]  (12.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:53.029730"], ["updated_at", "2016-03-11 01:42:53.029730"]]  (10.4ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:53.045283"], ["updated_at", "2016-03-11 01:42:53.045283"]]  (12.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (130.7ms) Completed 500 Internal Server Error in 141ms (ActiveRecord: 0.2ms)  (14.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "--PcRsdRsB2kXe6p1nuy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$EM5pkyYSAjrToNrhAmt4JOfjEHhjq3aTuShhjMJLy0bkNqvW.7LIu"], ["confirmed_at", "2016-03-11 01:42:53.286193"], ["authentication_token", "--PcRsdRsB2kXe6p1nuy"], ["created_at", "2016-03-11 01:42:53.289525"], ["updated_at", "2016-03-11 01:42:53.289525"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:53.306837"], ["updated_at", "2016-03-11 01:42:53.306837"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:53.322246"], ["updated_at", "2016-03-11 01:42:53.322246"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yXsz_zsDQ66Uz8hdGxaA"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$./8syKJqIK5H5SVrvF7NLORHdHRlKJdr/YquenWtYQjRYPq3sPMru"], ["confirmed_at", "2016-03-11 01:42:53.338279"], ["authentication_token", "yXsz_zsDQ66Uz8hdGxaA"], ["created_at", "2016-03-11 01:42:53.341363"], ["updated_at", "2016-03-11 01:42:53.341363"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 2], ["created_at", "2016-03-11 01:42:53.358102"], ["updated_at", "2016-03-11 01:42:53.358102"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:42:53.370614"], ["updated_at", "2016-03-11 01:42:53.370614"]]  (10.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (69.6ms) Completed 500 Internal Server Error in 77ms (ActiveRecord: 0.1ms)  (12.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Wxyg6_W8t8DxRKA7vex7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$J7esTsqoaG303ryzfWFvO.MssVJ7oxMD4xB1D7A2E4QsJoYG9n.uW"], ["confirmed_at", "2016-03-11 01:42:53.545564"], ["authentication_token", "Wxyg6_W8t8DxRKA7vex7"], ["created_at", "2016-03-11 01:42:53.548922"], ["updated_at", "2016-03-11 01:42:53.548922"]]  (11.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:53.565433"], ["updated_at", "2016-03-11 01:42:53.565433"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:53.580621"], ["updated_at", "2016-03-11 01:42:53.580621"]]  (11.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.8ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.2ms)  (12.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (34.4ms) Completed 500 Internal Server Error in 60ms (ActiveRecord: 1.5ms)  (13.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QgRiizEeouGR7-RzyJYy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$Ylao3Acq8FqV3aM4lc3T1OGtiWUM8FRH8TckiDUKiw2nDP4SuZIaG"], ["confirmed_at", "2016-03-11 01:42:53.928011"], ["authentication_token", "QgRiizEeouGR7-RzyJYy"], ["created_at", "2016-03-11 01:42:53.930870"], ["updated_at", "2016-03-11 01:42:53.930870"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:53.947260"], ["updated_at", "2016-03-11 01:42:53.947260"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:53.962253"], ["updated_at", "2016-03-11 01:42:53.962253"]]  (10.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:53 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (31.7ms) Completed 500 Internal Server Error in 54ms (ActiveRecord: 1.9ms)  (12.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:42:54.148513"], ["updated_at", "2016-03-11 01:42:54.148513"]]  (13.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (28.0ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 1.6ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (12.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (16.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:42:54 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (2.0ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5XY7yMtaWvWiBXjTxS_b"]] Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "3a6ae0f0d4cbba20e3ea2b8d6eb592a2d03b746da0ee5772714d81841c41b166"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$uvUDejfAsjS8CzXsA/8bG.5kzTy7cTDadARK/fqhUEkbugu899xDK"], ["authentication_token", "5XY7yMtaWvWiBXjTxS_b"], ["created_at", "2016-03-11 01:42:54.375867"], ["updated_at", "2016-03-11 01:42:54.375867"], ["confirmation_token", "tdksQTZ_WpUAPrqxcpux"], ["confirmation_sent_at", "2016-03-11 01:42:54.591320"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 526.3ms Sent mail to mtdevise@example.com (31.4ms) Date: Fri, 11 Mar 2016 01:42:55 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e2229f294fa_cd89710f8963d9@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:55.182724"], ["updated_at", "2016-03-11 01:42:55.182724"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:55.198823"], ["updated_at", "2016-03-11 01:42:55.198823"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:42:55.210696"], ["updated_at", "2016-03-11 01:42:55.211443"], ["id", 1]]  (20.3ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:55.240297"], ["current_sign_in_at", "2016-03-11 01:42:55.240297"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:55.241270"], ["id", 1]]  (7.8ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 890ms (ActiveRecord: 56.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (42.2ms) Completed 500 Internal Server Error in 55ms (ActiveRecord: 0.3ms)  (13.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (33.3ms) Completed 500 Internal Server Error in 54ms (ActiveRecord: 1.6ms)  (11.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "D5xS-UgLTuesS6WRmsY8"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$ry.UyMxUxeJekIc5Yh2zbOCLYLC58J5sLSZBqcNXJcf2elFOJYm7q"], ["confirmed_at", "2016-03-11 01:42:55.520089"], ["authentication_token", "D5xS-UgLTuesS6WRmsY8"], ["created_at", "2016-03-11 01:42:55.523143"], ["updated_at", "2016-03-11 01:42:55.523143"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:55.560114"], ["current_sign_in_at", "2016-03-11 01:42:55.560114"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:55.561394"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (43.2ms) Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.4ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.4ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "S8PQCCm_jdapkYJqzzpb"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "2aa547026faf08afb1bb0d150ca4870651163ac9467eea6e7b99eec21b812931"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$zvjl8tldGAGk4.oOOfFA8ujDLXQW.PXWkxi/ADOamtD8JuxxNJNdG"], ["authentication_token", "S8PQCCm_jdapkYJqzzpb"], ["created_at", "2016-03-11 01:42:55.739654"], ["updated_at", "2016-03-11 01:42:55.739654"], ["confirmation_token", "i-Y-u2uLiExKyjHoKby6"], ["confirmation_sent_at", "2016-03-11 01:42:55.741055"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 7.4ms Sent mail to user@example.com (4.4ms) Date: Fri, 11 Mar 2016 01:42:55 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2229fb7fcb_cd89710f8964fd@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:55.756456"], ["updated_at", "2016-03-11 01:42:55.756456"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:55.773554"], ["updated_at", "2016-03-11 01:42:55.773554"]]  (6.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:42:55.782787"], ["updated_at", "2016-03-11 01:42:55.783576"], ["id", 1]]  (9.4ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WjXCAhFyfJbsxwvTRsXr"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$8rNx/ivYPNETwb.u33vggOhsScF6ZorXGSyaRDJbCnMp4n05OmmOu"], ["confirmed_at", "2016-03-11 01:42:55.911770"], ["authentication_token", "WjXCAhFyfJbsxwvTRsXr"], ["created_at", "2016-03-11 01:42:55.915441"], ["updated_at", "2016-03-11 01:42:55.915441"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:55.931876"], ["updated_at", "2016-03-11 01:42:55.931876"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:55.945576"], ["updated_at", "2016-03-11 01:42:55.945576"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:55 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:42:55.987013"], ["current_sign_in_at", "2016-03-11 01:42:55.987013"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:42:55.988454"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:42:56 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (61.4ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.4ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yxtGYdLv8M-CA9tJUiqf"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$AUA3F678W8T1L9dQhouMf.nsZZvyMe5lB2LQbEshQT83KSuw8YIaS"], ["confirmed_at", "2016-03-11 01:42:56.143297"], ["authentication_token", "yxtGYdLv8M-CA9tJUiqf"], ["created_at", "2016-03-11 01:42:56.146510"], ["updated_at", "2016-03-11 01:42:56.146510"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 01:42:56.161857"], ["updated_at", "2016-03-11 01:42:56.161857"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:42:56.174355"], ["updated_at", "2016-03-11 01:42:56.174355"]]  (7.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:42:56 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test25@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (82.5ms) Completed 500 Internal Server Error in 91ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (13.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (11.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.9ms) Completed 200 OK in 17724ms (Views: 17687.6ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (4.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (291.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 383ms (Views: 321.0ms | ActiveRecord: 1.0ms)  (15.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:29 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (42.8ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (3.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (34.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 93ms (Views: 51.7ms | ActiveRecord: 0.0ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JjqpUgsGwsWhPxBWpr-Q"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$w3KwRQDpGkg.zyXBvdvoyOjveGYy6cbsBSclxdW.di6yOrHomzKXq"], ["confirmed_at", "2016-03-11 01:44:30.197271"], ["authentication_token", "JjqpUgsGwsWhPxBWpr-Q"], ["created_at", "2016-03-11 01:44:30.252652"], ["updated_at", "2016-03-11 01:44:30.252652"]]  (12.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:30.320163"], ["current_sign_in_at", "2016-03-11 01:44:30.320163"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:30.321500"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 44ms (ActiveRecord: 13.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (10.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (46.9ms) Completed 500 Internal Server Error in 104ms (ActiveRecord: 0.7ms)  (10.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jfXB4re35TwiVs2x4G5j"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$5uLM3wEy0./MyAJz/X1pROEFMqYIZ5zoBCTTnyA85Al1VlOmqKf0e"], ["confirmed_at", "2016-03-11 01:44:30.555035"], ["authentication_token", "jfXB4re35TwiVs2x4G5j"], ["created_at", "2016-03-11 01:44:30.558850"], ["updated_at", "2016-03-11 01:44:30.558850"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:30.575040"], ["updated_at", "2016-03-11 01:44:30.575040"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:30.629780"], ["updated_at", "2016-03-11 01:44:30.629780"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (119.9ms) Completed 500 Internal Server Error in 130ms (ActiveRecord: 0.0ms)  (21.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (15.7ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (14.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WHmHdgx5-LHw_o2DALKN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$nSW.ERtM/gNU/CQN5RzuQuGv5JW36vHdD4Wvi5F6aPIjbF81l/orO"], ["confirmed_at", "2016-03-11 01:44:30.905040"], ["authentication_token", "WHmHdgx5-LHw_o2DALKN"], ["created_at", "2016-03-11 01:44:30.909959"], ["updated_at", "2016-03-11 01:44:30.909959"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:30.926101"], ["updated_at", "2016-03-11 01:44:30.926101"]]  (7.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:30.937355"], ["updated_at", "2016-03-11 01:44:30.937355"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:30.973944"], ["current_sign_in_at", "2016-03-11 01:44:30.973944"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:30.974809"], ["id", 1]]  (19.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 28ms (ActiveRecord: 20.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (64.7ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 0.3ms)  (15.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (17.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (21.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (18.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (34.3ms) Completed 500 Internal Server Error in 65ms (ActiveRecord: 2.0ms)  (15.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:44:31.413129"], ["updated_at", "2016-03-11 01:44:31.413129"]]  (12.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (35.2ms) Completed 500 Internal Server Error in 78ms (ActiveRecord: 2.6ms)  (24.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (41.3ms) Completed 500 Internal Server Error in 74ms (ActiveRecord: 2.3ms)  (16.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:44:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "J1FpW5_9htpi3PUx7Thv"]] Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "eea887e1c1c00ed103f5a19d14436b588e37b954f676574e4889f18aab3e2fdf"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$xDb6Vy//5i/CGXC.uBz1ZOYzcIlqgsoUMNCG6lWdHjEJ/h2h144Tm"], ["authentication_token", "J1FpW5_9htpi3PUx7Thv"], ["created_at", "2016-03-11 01:44:31.854030"], ["updated_at", "2016-03-11 01:44:31.854030"], ["confirmation_token", "6pSrCfqBqd9rmeRNG4Zp"], ["confirmation_sent_at", "2016-03-11 01:44:32.097136"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 409.1ms Sent mail to mtdevise@example.com (28.2ms) Date: Fri, 11 Mar 2016 01:44:32 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22300888b1_cf69a30f8656a@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:32.572072"], ["updated_at", "2016-03-11 01:44:32.572072"]]  (18.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:32.602478"], ["updated_at", "2016-03-11 01:44:32.602478"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:44:32.614155"], ["updated_at", "2016-03-11 01:44:32.614864"], ["id", 1]]  (9.8ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:32.632995"], ["current_sign_in_at", "2016-03-11 01:44:32.632995"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:32.634138"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 804ms (ActiveRecord: 52.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (47.7ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.3ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LEKnvYwZs71FkaBRJymg"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$hLzEjwnKfOhCOx5b6WFiP.JrTgUCvpXhjAVdSVfHsGaxmLnZQ56Qy"], ["confirmed_at", "2016-03-11 01:44:32.783588"], ["authentication_token", "LEKnvYwZs71FkaBRJymg"], ["created_at", "2016-03-11 01:44:32.786475"], ["updated_at", "2016-03-11 01:44:32.786475"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:32.805954"], ["updated_at", "2016-03-11 01:44:32.805954"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:32.821792"], ["updated_at", "2016-03-11 01:44:32.821792"]]  (10.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:32 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:44:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:44:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (35.7ms) Completed 500 Internal Server Error in 60ms (ActiveRecord: 1.8ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_5AoxPRutqQUxKsYrpMX"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$/DY5ENG5gYh2eSqtiiU5T.nU9AwEnH9fJ9wPF7J84a1Q70nqyNKVO"], ["confirmed_at", "2016-03-11 01:44:33.002397"], ["authentication_token", "_5AoxPRutqQUxKsYrpMX"], ["created_at", "2016-03-11 01:44:33.005364"], ["updated_at", "2016-03-11 01:44:33.005364"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:33.043111"], ["current_sign_in_at", "2016-03-11 01:44:33.043111"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:33.044391"], ["id", 1]]  (11.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (69.7ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.4ms)  (10.3ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "21H6L-EZmjhkos78xxq9"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "a95dbba3dffb2383b7405375f78493ebe45ccd0e8170baaa5dae76ef8618ee85"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$6Vb6TOYAtirX.UVP2d2E5erCtOdgkvMD1epROV4xQwhHhE2R/pona"], ["authentication_token", "21H6L-EZmjhkos78xxq9"], ["created_at", "2016-03-11 01:44:33.233029"], ["updated_at", "2016-03-11 01:44:33.233029"], ["confirmation_token", "tdDbDZHF7NHXSBJqTyj-"], ["confirmation_sent_at", "2016-03-11 01:44:33.234033"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 6.1ms Sent mail to user@example.com (2.9ms) Date: Fri, 11 Mar 2016 01:44:33 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e223013b5b6_cf69a30f8666d@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:33.245362"], ["updated_at", "2016-03-11 01:44:33.245362"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:33.260621"], ["updated_at", "2016-03-11 01:44:33.260621"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:44:33.270811"], ["updated_at", "2016-03-11 01:44:33.274520"], ["id", 1]]  (9.6ms) commit transaction Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (8.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ht8zw2PT1pCea8ZDM93d"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$JJq1wP017GV8tkJF3rptD.nL5bpc/S5Kj8F4uuOwTjQrE8oEcBAP2"], ["confirmed_at", "2016-03-11 01:44:33.398055"], ["authentication_token", "Ht8zw2PT1pCea8ZDM93d"], ["created_at", "2016-03-11 01:44:33.400992"], ["updated_at", "2016-03-11 01:44:33.400992"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:33.417425"], ["updated_at", "2016-03-11 01:44:33.417425"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:33.430525"], ["updated_at", "2016-03-11 01:44:33.430525"]]  (7.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:33.468124"], ["current_sign_in_at", "2016-03-11 01:44:33.468124"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:33.469579"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (58.3ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.5ms)  (9.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "migwX23KfoX8zdiX4i8H"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$y9owmKYMEqiSY1MAa2Hfx.Ul/YGi0SZQoc9vkrmq6EoOMBI1TmfYa"], ["confirmed_at", "2016-03-11 01:44:33.630578"], ["authentication_token", "migwX23KfoX8zdiX4i8H"], ["created_at", "2016-03-11 01:44:33.634442"], ["updated_at", "2016-03-11 01:44:33.634442"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:33.651219"], ["updated_at", "2016-03-11 01:44:33.651219"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:33.664671"], ["updated_at", "2016-03-11 01:44:33.664671"]]  (12.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:33.708399"], ["current_sign_in_at", "2016-03-11 01:44:33.708399"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:33.709339"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (44.3ms) Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.4ms)  (12.4ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-R4Q7RB9fqWMvhXTiDxq"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$XJ6vh3c5TqT4MagJ4.ru/.Aoc.9rYfrQCMmC8vJzlZRrJiyp1Oi16"], ["confirmed_at", "2016-03-11 01:44:33.849852"], ["authentication_token", "-R4Q7RB9fqWMvhXTiDxq"], ["created_at", "2016-03-11 01:44:33.852953"], ["updated_at", "2016-03-11 01:44:33.852953"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:33.867864"], ["updated_at", "2016-03-11 01:44:33.867864"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:33.880677"], ["updated_at", "2016-03-11 01:44:33.880677"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:33.919752"], ["current_sign_in_at", "2016-03-11 01:44:33.919752"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:33.920627"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:33 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (77.8ms) Completed 500 Internal Server Error in 84ms (ActiveRecord: 0.5ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ub_1tkaUy8Ttf-znD_Nh"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$4xHeOdSMNeJoljvcNx12vOeyML8ixR2qt3xMU7Yf4ZkE.EANQffBO"], ["confirmed_at", "2016-03-11 01:44:34.099903"], ["authentication_token", "Ub_1tkaUy8Ttf-znD_Nh"], ["created_at", "2016-03-11 01:44:34.104387"], ["updated_at", "2016-03-11 01:44:34.104387"]]  (8.9ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:34.120800"], ["updated_at", "2016-03-11 01:44:34.120800"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:34.136542"], ["updated_at", "2016-03-11 01:44:34.136542"]]  (19.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:34.193128"], ["current_sign_in_at", "2016-03-11 01:44:34.193128"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:34.194460"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (46.1ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.4ms)  (11.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oDWjN5SJTQvweQ7HvmsQ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$klJ7fbKm4tk95.iRnLNeWeh9sfzgjogVeH5moDsZzgXC3uJFh4WA2"], ["confirmed_at", "2016-03-11 01:44:34.462043"], ["authentication_token", "oDWjN5SJTQvweQ7HvmsQ"], ["created_at", "2016-03-11 01:44:34.466857"], ["updated_at", "2016-03-11 01:44:34.466857"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.8ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:34.486029"], ["updated_at", "2016-03-11 01:44:34.486029"]]  (12.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:34.507226"], ["updated_at", "2016-03-11 01:44:34.507226"]]  (13.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.3ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:34.560069"], ["current_sign_in_at", "2016-03-11 01:44:34.560069"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:34.561274"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (71.9ms) Completed 500 Internal Server Error in 82ms (ActiveRecord: 0.4ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (68.6ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (14.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (16.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.1ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mk5SM7mYYifZRCB7-A1G"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$cN7pvPWBJjShxp30LHSx/e3AE9DO6NsHgIREOku4N.yk9GjPf1Bm2"], ["confirmed_at", "2016-03-11 01:44:34.978418"], ["authentication_token", "mk5SM7mYYifZRCB7-A1G"], ["created_at", "2016-03-11 01:44:34.982460"], ["updated_at", "2016-03-11 01:44:34.982460"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:35.000460"], ["updated_at", "2016-03-11 01:44:35.000460"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:35.017187"], ["updated_at", "2016-03-11 01:44:35.017187"]]  (10.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (94.5ms) Completed 500 Internal Server Error in 102ms (ActiveRecord: 0.2ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vF5Ni3HvQmK88C3GMwdG"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$2D.AmbSGPxFxeEG7VxbvD.JZSeWX91DQ7WzoNyimSDxBkk2K0vE.6"], ["confirmed_at", "2016-03-11 01:44:35.220704"], ["authentication_token", "vF5Ni3HvQmK88C3GMwdG"], ["created_at", "2016-03-11 01:44:35.225240"], ["updated_at", "2016-03-11 01:44:35.225240"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:35.241851"], ["updated_at", "2016-03-11 01:44:35.241851"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:35.254050"], ["updated_at", "2016-03-11 01:44:35.254050"]]  (8.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (68.7ms) Completed 500 Internal Server Error in 77ms (ActiveRecord: 0.2ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sUC6vPtNm4yD-Vd1-9Ro"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$Xkg3A3HB3kLLrbVEBdw3J.ro5ZZCGHdePEhjBnwhV.40zP.TMv8/O"], ["confirmed_at", "2016-03-11 01:44:35.424585"], ["authentication_token", "sUC6vPtNm4yD-Vd1-9Ro"], ["created_at", "2016-03-11 01:44:35.429475"], ["updated_at", "2016-03-11 01:44:35.429475"]]  (10.0ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:35.446683"], ["updated_at", "2016-03-11 01:44:35.446683"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:35.461641"], ["updated_at", "2016-03-11 01:44:35.461641"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.9ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (98.9ms) Completed 500 Internal Server Error in 114ms (ActiveRecord: 0.2ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "s1jf-urgApjFZ1dzKWxD"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$7M1RNEhxVsphcbi/.L/17OPj.aU0QIoAJjoEYTaFLyI3bmE09YuEq"], ["confirmed_at", "2016-03-11 01:44:35.675942"], ["authentication_token", "s1jf-urgApjFZ1dzKWxD"], ["created_at", "2016-03-11 01:44:35.680505"], ["updated_at", "2016-03-11 01:44:35.680505"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:35.700850"], ["updated_at", "2016-03-11 01:44:35.700850"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:35.718772"], ["updated_at", "2016-03-11 01:44:35.718772"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "gWLFNfE5BzKJhj_GrbEo"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$VcImx79Ju/kq6vRoN4c9uOQC736gSI8TEXWaO37Epiv7ZKlfBoqBK"], ["confirmed_at", "2016-03-11 01:44:35.734440"], ["authentication_token", "gWLFNfE5BzKJhj_GrbEo"], ["created_at", "2016-03-11 01:44:35.738616"], ["updated_at", "2016-03-11 01:44:35.738616"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 2], ["created_at", "2016-03-11 01:44:35.757019"], ["updated_at", "2016-03-11 01:44:35.757019"]]  (8.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:44:35.771384"], ["updated_at", "2016-03-11 01:44:35.771384"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:35 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (74.3ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 0.3ms)  (21.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "HDJPQsMSNUgug9mYdN7a"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$phF0yk/U7sgZAHEXcRO30eWY2jhPXcPO6A1nVtZwgsGzK.K606h52"], ["confirmed_at", "2016-03-11 01:44:36.012909"], ["authentication_token", "HDJPQsMSNUgug9mYdN7a"], ["created_at", "2016-03-11 01:44:36.019136"], ["updated_at", "2016-03-11 01:44:36.019136"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:36.039833"], ["updated_at", "2016-03-11 01:44:36.039833"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:36.056313"], ["updated_at", "2016-03-11 01:44:36.056313"]]  (12.7ms) commit transaction  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "YRdXS48FN8ZKzzJcubFB"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$VWdjriWdqqTMP9nAi10aN.hKFMqXiYOLEHCIPTKnlgQpj2b84NJWy"], ["confirmed_at", "2016-03-11 01:44:36.075182"], ["authentication_token", "YRdXS48FN8ZKzzJcubFB"], ["created_at", "2016-03-11 01:44:36.080062"], ["updated_at", "2016-03-11 01:44:36.080062"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 01:44:36.099560"], ["updated_at", "2016-03-11 01:44:36.099560"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:44:36.118650"], ["updated_at", "2016-03-11 01:44:36.118650"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:44:36.142065"], ["updated_at", "2016-03-11 01:44:36.142065"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:44:36.155405"], ["updated_at", "2016-03-11 01:44:36.155405"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:36.212178"], ["current_sign_in_at", "2016-03-11 01:44:36.212178"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:36.213703"], ["id", 2]]  (13.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 28ms (ActiveRecord: 14.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (78.3ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 0.4ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MvWi39puDxTHxnZ32X1N"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$wGPFT58K7KH4FGbLKUYzaeyQO2rod8wqRNYcNsDo1ji2ZKWoT6zzS"], ["confirmed_at", "2016-03-11 01:44:36.406798"], ["authentication_token", "MvWi39puDxTHxnZ32X1N"], ["created_at", "2016-03-11 01:44:36.411215"], ["updated_at", "2016-03-11 01:44:36.411215"]]  (11.3ms) commit transaction  (0.4ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:44:36.434748"], ["updated_at", "2016-03-11 01:44:36.434748"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:44:36.453238"], ["updated_at", "2016-03-11 01:44:36.453238"]]  (8.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1YHh-zaG9YWTGyznaEHi"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$hKf3pHv1jFtErGYAp.BGoOfGtoCcZl2ilI6BOr4lLJAL.tomngAs."], ["confirmed_at", "2016-03-11 01:44:36.467934"], ["authentication_token", "1YHh-zaG9YWTGyznaEHi"], ["created_at", "2016-03-11 01:44:36.472860"], ["updated_at", "2016-03-11 01:44:36.472860"]]  (10.7ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.7ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 01:44:36.494279"], ["updated_at", "2016-03-11 01:44:36.494279"]]  (12.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:44:36.515360"], ["updated_at", "2016-03-11 01:44:36.515360"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:44:36.532166"], ["updated_at", "2016-03-11 01:44:36.532166"]]  (11.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:44:36.547826"], ["updated_at", "2016-03-11 01:44:36.547826"]]  (11.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:44:36.590092"], ["current_sign_in_at", "2016-03-11 01:44:36.590092"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:44:36.591037"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:44:36 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.9ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.4ms)  (14.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (14.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.6ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "z2zxouw92h2CoX3cBS1x"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$5Jqyhjg0Kzk1y02tIBP1ru6aTH.hJ0eUxyVOy7X5FITF9ThT2QuoG"], ["confirmed_at", "2016-03-11 01:47:01.378763"], ["authentication_token", "z2zxouw92h2CoX3cBS1x"], ["created_at", "2016-03-11 01:47:01.480711"], ["updated_at", "2016-03-11 01:47:01.480711"]]  (27.7ms) commit transaction  (0.3ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:01.551041"], ["updated_at", "2016-03-11 01:47:01.551041"]]  (12.1ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:01.667633"], ["updated_at", "2016-03-11 01:47:01.667633"]]  (10.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (312.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.5ms) Completed 200 OK in 836ms (Views: 800.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:02.573981"], ["current_sign_in_at", "2016-03-11 01:47:02.573981"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:02.575511"], ["id", 1]]  (12.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 65ms (ActiveRecord: 13.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.6ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (12.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (48.3ms) Completed 500 Internal Server Error in 94ms (ActiveRecord: 1.1ms)  (11.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (61.5ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "aURtMST2ca4QgQTzMGm9"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$umciVZrktionwbRDPJJ8y.OoJGiMGJ5XDlXfI2k5e4FqxZ3sxYJhm"], ["confirmed_at", "2016-03-11 01:47:03.073126"], ["authentication_token", "aURtMST2ca4QgQTzMGm9"], ["created_at", "2016-03-11 01:47:03.076638"], ["updated_at", "2016-03-11 01:47:03.076638"]]  (12.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:03.116595"], ["current_sign_in_at", "2016-03-11 01:47:03.116595"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:03.117529"], ["id", 1]]  (9.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (71.4ms) Completed 500 Internal Server Error in 78ms (ActiveRecord: 0.5ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:47:03.269064"], ["updated_at", "2016-03-11 01:47:03.269064"]]  (11.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (56.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 67ms (Views: 64.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (36.9ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 1.9ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (40.6ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 1.5ms)  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (58.1ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 1.9ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1o_TGzQoMgXySLTxXEQ4"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$GJOzT0RGN/RM4ONk7NFh7OYYhnRrz3/autmG3K1FbjZLrGklxV2PC"], ["confirmed_at", "2016-03-11 01:47:03.844059"], ["authentication_token", "1o_TGzQoMgXySLTxXEQ4"], ["created_at", "2016-03-11 01:47:03.847766"], ["updated_at", "2016-03-11 01:47:03.847766"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:03.866667"], ["updated_at", "2016-03-11 01:47:03.866667"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:03.883965"], ["updated_at", "2016-03-11 01:47:03.883965"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:47:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (44.3ms) Completed 500 Internal Server Error in 75ms (ActiveRecord: 1.7ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (7.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:47:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mrG9oG1HPtZStDi9zqQ6"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "0b7a9cd189758cbf01c16857b592859d2e17f7c9956b73b0144b74f98fa1e74d"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$xeGPPlxfHCln6WeuqxATJu0ZqmLXJZco0H08tN/VK529loN.Lz.n6"], ["authentication_token", "mrG9oG1HPtZStDi9zqQ6"], ["created_at", "2016-03-11 01:47:04.177155"], ["updated_at", "2016-03-11 01:47:04.177155"], ["confirmation_token", "otNP13ysV2exSKMsEHtp"], ["confirmation_sent_at", "2016-03-11 01:47:04.410184"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 417.5ms Sent mail to mtdevise@example.com (48.1ms) Date: Fri, 11 Mar 2016 01:47:04 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22398d9645_d127f70d86973b@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:04.908338"], ["updated_at", "2016-03-11 01:47:04.908338"]]  (12.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:04.927008"], ["updated_at", "2016-03-11 01:47:04.927008"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:47:04.939614"], ["updated_at", "2016-03-11 01:47:04.940641"], ["id", 1]]  (8.6ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:04.958155"], ["current_sign_in_at", "2016-03-11 01:47:04.958155"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:04.959186"], ["id", 1]]  (9.5ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 811ms (ActiveRecord: 44.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:04 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (43.2ms) Completed 500 Internal Server Error in 60ms (ActiveRecord: 0.6ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "n2gPzb3sX_--RyRf55bF"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$M2CojsU2Ow5.48.EOt5KXe2tNgy0Ci8oqOeyS36pEVptn3.YrVM8."], ["confirmed_at", "2016-03-11 01:47:05.158453"], ["authentication_token", "n2gPzb3sX_--RyRf55bF"], ["created_at", "2016-03-11 01:47:05.162426"], ["updated_at", "2016-03-11 01:47:05.162426"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:05.180132"], ["updated_at", "2016-03-11 01:47:05.180132"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:05.194756"], ["updated_at", "2016-03-11 01:47:05.194756"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "11LCBy2taRkTDGybm7ND"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$YTtsd5DxAvWkF2SFI3Z.auqkoEDqAg8XxWJOV9NKsdIbu/hO0DcgO"], ["confirmed_at", "2016-03-11 01:47:05.208700"], ["authentication_token", "11LCBy2taRkTDGybm7ND"], ["created_at", "2016-03-11 01:47:05.212613"], ["updated_at", "2016-03-11 01:47:05.212613"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 2], ["created_at", "2016-03-11 01:47:05.230572"], ["updated_at", "2016-03-11 01:47:05.230572"]]  (7.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:47:05.242391"], ["updated_at", "2016-03-11 01:47:05.242391"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (73.4ms) Completed 500 Internal Server Error in 83ms (ActiveRecord: 0.2ms)  (11.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wsBvcDdhgS6Q5EYs9jFV"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$AExkZKrFJeRWf3RSj/End.c7j9O6oaI.0y2EMNtlPPyA0QeeQS/Vu"], ["confirmed_at", "2016-03-11 01:47:05.426971"], ["authentication_token", "wsBvcDdhgS6Q5EYs9jFV"], ["created_at", "2016-03-11 01:47:05.431500"], ["updated_at", "2016-03-11 01:47:05.431500"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:05.448981"], ["updated_at", "2016-03-11 01:47:05.448981"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:05.462872"], ["updated_at", "2016-03-11 01:47:05.462872"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (74.3ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 0.2ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mz_pEPUB1sDQFkF8-gpW"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$KlcZNjLe5Af3VunjNPmiFeA/GOKKp3ilrmrbR4kv/v0iU8IJ0mw/G"], ["confirmed_at", "2016-03-11 01:47:05.642725"], ["authentication_token", "mz_pEPUB1sDQFkF8-gpW"], ["created_at", "2016-03-11 01:47:05.647695"], ["updated_at", "2016-03-11 01:47:05.647695"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:05.679322"], ["updated_at", "2016-03-11 01:47:05.679322"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:05.694574"], ["updated_at", "2016-03-11 01:47:05.694574"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (57.4ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 0.3ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "SiXxDMxscryv3tzK6xY7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$3RWg828BDmesS19vdoaADeRp58nZkMB2RCA11DSQ2.CuLHF7XFlHy"], ["confirmed_at", "2016-03-11 01:47:05.862950"], ["authentication_token", "SiXxDMxscryv3tzK6xY7"], ["created_at", "2016-03-11 01:47:05.866725"], ["updated_at", "2016-03-11 01:47:05.866725"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:05.883984"], ["updated_at", "2016-03-11 01:47:05.883984"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:05.897651"], ["updated_at", "2016-03-11 01:47:05.897651"]]  (7.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:05 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (69.3ms) Completed 500 Internal Server Error in 77ms (ActiveRecord: 0.2ms)  (12.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "U9HzfMqq8xoWszD345UZ"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$tkmjYCuOrHhVABKP23zVJuLZIt6A2ppEaqOtSZm0dXx8eGzzQjM/O"], ["confirmed_at", "2016-03-11 01:47:06.113205"], ["authentication_token", "U9HzfMqq8xoWszD345UZ"], ["created_at", "2016-03-11 01:47:06.117848"], ["updated_at", "2016-03-11 01:47:06.117848"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:06.169848"], ["current_sign_in_at", "2016-03-11 01:47:06.169848"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:06.171497"], ["id", 1]]  (11.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (45.7ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.5ms)  (11.4ms) DELETE FROM "things";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (64.6ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (7.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 12.4ms | ActiveRecord: 0.0ms)  (12.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GzknJ3vg_DXXCt4ztKh2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$doy6QzrKMc5vDt4WL6R7/euGp8jH5yliM1pjzN/LKe6o8vnsts3wW"], ["confirmed_at", "2016-03-11 01:47:06.619825"], ["authentication_token", "GzknJ3vg_DXXCt4ztKh2"], ["created_at", "2016-03-11 01:47:06.623217"], ["updated_at", "2016-03-11 01:47:06.623217"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:06.641660"], ["updated_at", "2016-03-11 01:47:06.641660"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:06.657319"], ["updated_at", "2016-03-11 01:47:06.657319"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:06.695687"], ["current_sign_in_at", "2016-03-11 01:47:06.695687"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:06.696572"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (46.0ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.5ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Jyts4mRGrZvoxEu69ctP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$CD3krBR7sTd5kKDCp2XhHucCINn6uCTij4rwigkXuBUlCHj0Aam0C"], ["confirmed_at", "2016-03-11 01:47:06.839200"], ["authentication_token", "Jyts4mRGrZvoxEu69ctP"], ["created_at", "2016-03-11 01:47:06.843997"], ["updated_at", "2016-03-11 01:47:06.843997"]]  (11.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:06.865469"], ["updated_at", "2016-03-11 01:47:06.865469"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:06.881938"], ["updated_at", "2016-03-11 01:47:06.881938"]]  (13.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:06.934177"], ["current_sign_in_at", "2016-03-11 01:47:06.934177"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:06.936741"], ["id", 1]]  (13.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 27ms (ActiveRecord: 14.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:06 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (48.2ms) Completed 500 Internal Server Error in 57ms (ActiveRecord: 0.5ms)  (11.1ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bmMuQ1gT9hH5oYRLXzwG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$TNRDnE2Cpd3GKiLlJw.naO8QXZW3FG3TD7ipCGoNJo0lsNbTBoD/m"], ["confirmed_at", "2016-03-11 01:47:07.091738"], ["authentication_token", "bmMuQ1gT9hH5oYRLXzwG"], ["created_at", "2016-03-11 01:47:07.096492"], ["updated_at", "2016-03-11 01:47:07.096492"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:07.113683"], ["updated_at", "2016-03-11 01:47:07.113683"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:07.128337"], ["updated_at", "2016-03-11 01:47:07.128337"]]  (12.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:07.178661"], ["current_sign_in_at", "2016-03-11 01:47:07.178661"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:07.179990"], ["id", 1]]  (11.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (86.5ms) Completed 500 Internal Server Error in 96ms (ActiveRecord: 0.5ms)  (12.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3ysn-rvQPMcQ9eULstik"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$NYMc4iFG7/pWP/Ge9Ww7TOQjxwpylRRiWuyrRmbVfugslqh273uA2"], ["confirmed_at", "2016-03-11 01:47:07.391693"], ["authentication_token", "3ysn-rvQPMcQ9eULstik"], ["created_at", "2016-03-11 01:47:07.396937"], ["updated_at", "2016-03-11 01:47:07.396937"]]  (12.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:07.420896"], ["updated_at", "2016-03-11 01:47:07.420896"]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:07.443147"], ["updated_at", "2016-03-11 01:47:07.443147"]]  (11.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (2.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:07.506388"], ["current_sign_in_at", "2016-03-11 01:47:07.506388"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:07.507489"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 12.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.3ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.3ms)  (12.0ms) DELETE FROM "things";  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (18.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WP3xLWzxfsn7sV3UYTxN"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "6c963ffa2c2ffe27893f728b6ea40915cf002ad22515c50925e6255a93fd059a"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$kxB9.w1qFEUcsySoRMdK0.CFEBp7Q8X./2anuRrrtBwG.ApIAzCKG"], ["authentication_token", "WP3xLWzxfsn7sV3UYTxN"], ["created_at", "2016-03-11 01:47:07.743021"], ["updated_at", "2016-03-11 01:47:07.743021"], ["confirmation_token", "E9xQoF_D3pzsKmrTgHoY"], ["confirmation_sent_at", "2016-03-11 01:47:07.744254"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.8ms Sent mail to user@example.com (2.8ms) Date: Fri, 11 Mar 2016 01:47:07 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2239bb7fc8_d127f70d8698ca@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:07.755639"], ["updated_at", "2016-03-11 01:47:07.755639"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:07.772522"], ["updated_at", "2016-03-11 01:47:07.772522"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:47:07.785843"], ["updated_at", "2016-03-11 01:47:07.786861"], ["id", 1]]  (13.2ms) commit transaction Mtdevise::User Load (1.0ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (14.8ms) DELETE FROM "things";  (2.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (12.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "smT35BcDZHLu3uz3ux75"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$4Q5a7nWE2D2223mkp.gfguVbkKtjfQETo84V7esoTklWSWmRjn1yK"], ["confirmed_at", "2016-03-11 01:47:07.947551"], ["authentication_token", "smT35BcDZHLu3uz3ux75"], ["created_at", "2016-03-11 01:47:07.952154"], ["updated_at", "2016-03-11 01:47:07.952154"]]  (17.0ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (3.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:07.981624"], ["updated_at", "2016-03-11 01:47:07.981624"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:07.998342"], ["updated_at", "2016-03-11 01:47:07.998342"]]  (10.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:08.066119"], ["current_sign_in_at", "2016-03-11 01:47:08.066119"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:08.067831"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 27ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (68.5ms) Completed 500 Internal Server Error in 79ms (ActiveRecord: 0.5ms)  (22.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (14.5ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MxmuerTgL_4exmQyxUJB"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$H/CUrupRrtRxvA10m9YUhufqxOciuHS4KpKZ16p6iOlt3a/feWBQ."], ["confirmed_at", "2016-03-11 01:47:08.279661"], ["authentication_token", "MxmuerTgL_4exmQyxUJB"], ["created_at", "2016-03-11 01:47:08.284944"], ["updated_at", "2016-03-11 01:47:08.284944"]]  (11.4ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:08.306929"], ["updated_at", "2016-03-11 01:47:08.306929"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:08.322517"], ["updated_at", "2016-03-11 01:47:08.322517"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (118.4ms) Completed 500 Internal Server Error in 129ms (ActiveRecord: 0.0ms)  (15.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (16.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sz5axcFB2LodFzXc-osp"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$SKeb0n17gBnx3HfpyXpWiOLc25jk/zvKoV7j/dxTWStt/h49HRnh."], ["confirmed_at", "2016-03-11 01:47:08.628442"], ["authentication_token", "sz5axcFB2LodFzXc-osp"], ["created_at", "2016-03-11 01:47:08.633957"], ["updated_at", "2016-03-11 01:47:08.633957"]]  (13.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.8ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:08.658152"], ["updated_at", "2016-03-11 01:47:08.658152"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:08.677806"], ["updated_at", "2016-03-11 01:47:08.677806"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JsECvY83wSzNBvXUk3tp"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$gwptG1Po63NNUsFd9zrJIepUCrdeqppk/SLrulSmahn1bW5LlMn/K"], ["confirmed_at", "2016-03-11 01:47:08.694649"], ["authentication_token", "JsECvY83wSzNBvXUk3tp"], ["created_at", "2016-03-11 01:47:08.700663"], ["updated_at", "2016-03-11 01:47:08.700663"]]  (9.9ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 01:47:08.721866"], ["updated_at", "2016-03-11 01:47:08.721866"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:47:08.738643"], ["updated_at", "2016-03-11 01:47:08.738643"]]  (9.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:47:08.782565"], ["updated_at", "2016-03-11 01:47:08.782565"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:47:08.800428"], ["updated_at", "2016-03-11 01:47:08.800428"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:08.863852"], ["current_sign_in_at", "2016-03-11 01:47:08.863852"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:08.865227"], ["id", 2]]  (10.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 11.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (67.7ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.5ms)  (10.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "v73iWGezKnBxyKiEzCbH"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$lDhbq8xK5RXULqZl8/x7P.eLgouibJjTJ7LRmuD6CnVTPRjeYheGy"], ["confirmed_at", "2016-03-11 01:47:09.049329"], ["authentication_token", "v73iWGezKnBxyKiEzCbH"], ["created_at", "2016-03-11 01:47:09.053366"], ["updated_at", "2016-03-11 01:47:09.053366"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:47:09.073708"], ["updated_at", "2016-03-11 01:47:09.073708"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:47:09.090722"], ["updated_at", "2016-03-11 01:47:09.090722"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "z81CcYFfsTkok5ye8-Tf"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$onJUkXwfiQEmx0umX1UcueXl862TUCZ36tOkUXoCh2Lm9NOy4kH4a"], ["confirmed_at", "2016-03-11 01:47:09.106216"], ["authentication_token", "z81CcYFfsTkok5ye8-Tf"], ["created_at", "2016-03-11 01:47:09.110233"], ["updated_at", "2016-03-11 01:47:09.110233"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 01:47:09.127645"], ["updated_at", "2016-03-11 01:47:09.127645"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:47:09.143598"], ["updated_at", "2016-03-11 01:47:09.143598"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:47:09.158217"], ["updated_at", "2016-03-11 01:47:09.158217"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:47:09.173115"], ["updated_at", "2016-03-11 01:47:09.173115"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:47:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.7ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:47:09.220565"], ["current_sign_in_at", "2016-03-11 01:47:09.220565"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:47:09.221529"], ["id", 1]]  (11.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:47:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (62.0ms) Completed 500 Internal Server Error in 71ms (ActiveRecord: 0.4ms)  (12.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.3ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xqGpsVwYPGXqyexmirCx"]] SQL (2.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$j0CG8kXCw.muVzD/KucOZenYavxdgaUQ4vct1aP0BI2ByWPBcAZ62"], ["confirmed_at", "2016-03-11 01:52:00.338094"], ["authentication_token", "xqGpsVwYPGXqyexmirCx"], ["created_at", "2016-03-11 01:52:00.441865"], ["updated_at", "2016-03-11 01:52:00.441865"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:00.484528"], ["updated_at", "2016-03-11 01:52:00.484528"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:00.583465"], ["updated_at", "2016-03-11 01:52:00.583465"]]  (12.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:00 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (282.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 712ms (Views: 682.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:01.362008"], ["current_sign_in_at", "2016-03-11 01:52:01.362008"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:01.362868"], ["id", 1]]  (12.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 57ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (8.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (40.2ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 0.7ms)  (8.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Mj91t6z4bzYYBe45AqVX"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$W.ClkRp3cuFntCIM08w3eeKqYoMPx.Vzncsop6fXFFy98R7/JABRG"], ["confirmed_at", "2016-03-11 01:52:01.557593"], ["authentication_token", "Mj91t6z4bzYYBe45AqVX"], ["created_at", "2016-03-11 01:52:01.560625"], ["updated_at", "2016-03-11 01:52:01.560625"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:01.575319"], ["updated_at", "2016-03-11 01:52:01.575319"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:01.588873"], ["updated_at", "2016-03-11 01:52:01.588873"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:01.623618"], ["current_sign_in_at", "2016-03-11 01:52:01.623618"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:01.624529"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (36.7ms) Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.3ms)  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "awiA2JPDMB-LmDs1M_o9"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$8tlogp5M31riswjaq3tHTenH7mov5bpwY1SUGGSMZI08pHgq4jKG."], ["confirmed_at", "2016-03-11 01:52:01.753598"], ["authentication_token", "awiA2JPDMB-LmDs1M_o9"], ["created_at", "2016-03-11 01:52:01.756266"], ["updated_at", "2016-03-11 01:52:01.756266"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:01.770570"], ["updated_at", "2016-03-11 01:52:01.770570"]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:01.781721"], ["updated_at", "2016-03-11 01:52:01.781721"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:01.816934"], ["current_sign_in_at", "2016-03-11 01:52:01.816934"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:01.817895"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (61.8ms) Completed 500 Internal Server Error in 69ms (ActiveRecord: 0.4ms)  (10.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EYHy4rfxNR642rQzzwGX"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$RMECDbZjt/2R7SIlC7TmYOUNLCBb9z4rF2OvoFCfUOCyzGToL5U7W"], ["confirmed_at", "2016-03-11 01:52:01.979087"], ["authentication_token", "EYHy4rfxNR642rQzzwGX"], ["created_at", "2016-03-11 01:52:01.982425"], ["updated_at", "2016-03-11 01:52:01.982425"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:01.996930"], ["updated_at", "2016-03-11 01:52:01.996930"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:02.011204"], ["updated_at", "2016-03-11 01:52:02.011204"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:02.047043"], ["current_sign_in_at", "2016-03-11 01:52:02.047043"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:02.048055"], ["id", 1]]  (12.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (79.5ms) Completed 500 Internal Server Error in 85ms (ActiveRecord: 0.3ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PHzc4BvDyYXkxByDg8ch"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$uttttChIt9QN0Y5wWCT38e7C6cs1iKoO2RT2IfU.UdFxBXYvim8n2"], ["confirmed_at", "2016-03-11 01:52:02.259633"], ["authentication_token", "PHzc4BvDyYXkxByDg8ch"], ["created_at", "2016-03-11 01:52:02.263396"], ["updated_at", "2016-03-11 01:52:02.263396"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:02.280614"], ["updated_at", "2016-03-11 01:52:02.280614"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:02.294427"], ["updated_at", "2016-03-11 01:52:02.294427"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (56.0ms) Completed 500 Internal Server Error in 65ms (ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FgkCSsa2ppRrCiZVPxGq"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$hNxBgHQ2h2Wdjt6TINpdee5qxHeA.8QDY7Vy81C67yRd9Rk4MP5Gu"], ["confirmed_at", "2016-03-11 01:52:02.465891"], ["authentication_token", "FgkCSsa2ppRrCiZVPxGq"], ["created_at", "2016-03-11 01:52:02.468844"], ["updated_at", "2016-03-11 01:52:02.468844"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:02.483167"], ["updated_at", "2016-03-11 01:52:02.483167"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:02.493798"], ["updated_at", "2016-03-11 01:52:02.493798"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:02.532252"], ["current_sign_in_at", "2016-03-11 01:52:02.532252"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:02.533365"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (40.5ms) Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.4ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zTYEwQ9k7tmc74aHkAsb"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$UP6vnH8BOV/hU0FbZE3kF.mmGFHvtixZyDe.4.pO9h7ItjYG.qbce"], ["confirmed_at", "2016-03-11 01:52:02.709752"], ["authentication_token", "zTYEwQ9k7tmc74aHkAsb"], ["created_at", "2016-03-11 01:52:02.712712"], ["updated_at", "2016-03-11 01:52:02.712712"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:02.727433"], ["updated_at", "2016-03-11 01:52:02.727433"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:02.740478"], ["updated_at", "2016-03-11 01:52:02.740478"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "nvstNC9sKCR4qz6us1zz"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$Kmh7mRQcZQ5YaLoMXhh0CelW2OmXpJJM5Uz3AGcC1lIxB.tndvTtO"], ["confirmed_at", "2016-03-11 01:52:02.754422"], ["authentication_token", "nvstNC9sKCR4qz6us1zz"], ["created_at", "2016-03-11 01:52:02.757584"], ["updated_at", "2016-03-11 01:52:02.757584"]]  (8.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 01:52:02.773367"], ["updated_at", "2016-03-11 01:52:02.773367"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:52:02.786371"], ["updated_at", "2016-03-11 01:52:02.786371"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:52:02.809601"], ["updated_at", "2016-03-11 01:52:02.809601"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:52:02.820262"], ["updated_at", "2016-03-11 01:52:02.820262"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:02.882698"], ["current_sign_in_at", "2016-03-11 01:52:02.882698"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:02.884132"], ["id", 2]]  (12.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (60.6ms) Completed 500 Internal Server Error in 70ms (ActiveRecord: 0.7ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zJik3HiRP7Kq15BV-y1Y"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$yz.BKIeSQZRQ7VuzQGdPPeFfGhNMzaJ2ljQXYK4vY9qCQGV8xJSga"], ["confirmed_at", "2016-03-11 01:52:03.055733"], ["authentication_token", "zJik3HiRP7Kq15BV-y1Y"], ["created_at", "2016-03-11 01:52:03.059977"], ["updated_at", "2016-03-11 01:52:03.059977"]]  (12.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:03.080345"], ["updated_at", "2016-03-11 01:52:03.080345"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:03.094588"], ["updated_at", "2016-03-11 01:52:03.094588"]]  (7.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EF11VMxPJkhRxaseyDEc"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$G8SYgpNXDNhfMH./xk92rOzSFl/QaZkluPgTK..6J/prH59BWSdCm"], ["confirmed_at", "2016-03-11 01:52:03.107161"], ["authentication_token", "EF11VMxPJkhRxaseyDEc"], ["created_at", "2016-03-11 01:52:03.110527"], ["updated_at", "2016-03-11 01:52:03.110527"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 2], ["created_at", "2016-03-11 01:52:03.129854"], ["updated_at", "2016-03-11 01:52:03.129854"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:52:03.143008"], ["updated_at", "2016-03-11 01:52:03.143008"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:52:03.155653"], ["updated_at", "2016-03-11 01:52:03.155653"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:52:03.168190"], ["updated_at", "2016-03-11 01:52:03.168190"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.4ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:03.209762"], ["current_sign_in_at", "2016-03-11 01:52:03.209762"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:03.211024"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (46.3ms) Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.3ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (16.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:52:03 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-kmFiFtxx2EmAsNPmQ2A"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "85fb0bb776c38499d2c983c4dc367f2c359927be08a34859d5c4776f83fce799"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$OPgUrrgx0FkRFShgosS0a.svQZuxAUlIQpOleJwfLlHOXPahIEsCq"], ["authentication_token", "-kmFiFtxx2EmAsNPmQ2A"], ["created_at", "2016-03-11 01:52:03.594172"], ["updated_at", "2016-03-11 01:52:03.594172"], ["confirmation_token", "zLNh-txsCaK4gHyZzmxg"], ["confirmation_sent_at", "2016-03-11 01:52:03.805418"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.7ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 324.4ms Sent mail to mtdevise@example.com (35.5ms) Date: Fri, 11 Mar 2016 01:52:04 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e224c42cf16_d40dd50e01045@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:04.194897"], ["updated_at", "2016-03-11 01:52:04.194897"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:04.210752"], ["updated_at", "2016-03-11 01:52:04.210752"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:52:04.222675"], ["updated_at", "2016-03-11 01:52:04.223330"], ["id", 1]]  (9.1ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:04.241468"], ["current_sign_in_at", "2016-03-11 01:52:04.241468"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:04.242230"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 675ms (ActiveRecord: 44.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (33.6ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.5ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (31.6ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 1.7ms)  (10.6ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (34.7ms) Completed 500 Internal Server Error in 70ms (ActiveRecord: 1.7ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NGiyX8xgarrREKkpVThK"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$cy4Lnd1fPmiovCDw0yZJdePVPEYIz30MHHtbAyz5tIHotyHoP1rbG"], ["confirmed_at", "2016-03-11 01:52:04.672223"], ["authentication_token", "NGiyX8xgarrREKkpVThK"], ["created_at", "2016-03-11 01:52:04.675079"], ["updated_at", "2016-03-11 01:52:04.675079"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:04.690522"], ["updated_at", "2016-03-11 01:52:04.690522"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:04.704949"], ["updated_at", "2016-03-11 01:52:04.704949"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (33.4ms) Completed 500 Internal Server Error in 55ms (ActiveRecord: 1.8ms)  (12.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:52:04.877074"], ["updated_at", "2016-03-11 01:52:04.877074"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:52:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (33.6ms) Completed 500 Internal Server Error in 58ms (ActiveRecord: 1.8ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (16.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NCPmXtRbhhcy_1LZ4tJ5"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$9UnMatxZ0Aalj4fLHR6GZuoz0XK6tt7z/GwidAvDM4kbeIjC0H0DW"], ["confirmed_at", "2016-03-11 01:52:05.045700"], ["authentication_token", "NCPmXtRbhhcy_1LZ4tJ5"], ["created_at", "2016-03-11 01:52:05.048699"], ["updated_at", "2016-03-11 01:52:05.048699"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:05.083285"], ["current_sign_in_at", "2016-03-11 01:52:05.083285"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:05.084161"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (40.4ms) Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.3ms)  (11.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (80.3ms) Completed 500 Internal Server Error in 88ms (ActiveRecord: 0.0ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4ZQbzb7x9xg4xGqkwy7R"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$u9VRR3.g0qz6F6yEZiaryeBSQQFaNhnQPLXWtXnu.h2L6Lxx7Tw6G"], ["confirmed_at", "2016-03-11 01:52:05.388109"], ["authentication_token", "4ZQbzb7x9xg4xGqkwy7R"], ["created_at", "2016-03-11 01:52:05.390765"], ["updated_at", "2016-03-11 01:52:05.390765"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:05.406093"], ["updated_at", "2016-03-11 01:52:05.406093"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:05.417684"], ["updated_at", "2016-03-11 01:52:05.417684"]]  (8.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:05.452875"], ["current_sign_in_at", "2016-03-11 01:52:05.452875"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:05.453704"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (44.2ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.3ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5FzxWqsRzzN_TcUybyHR"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "e079768e1e813c0f2ab94e1af297d2cdd59058df4fab7ed4b7bfe4a1ba0b25e5"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$sLqGprduB/0cpQpqfFt.DuZ/hyXApgQaX1x6Y1kqo7O1V3uVd03MS"], ["authentication_token", "5FzxWqsRzzN_TcUybyHR"], ["created_at", "2016-03-11 01:52:05.631318"], ["updated_at", "2016-03-11 01:52:05.631318"], ["confirmation_token", "iGRF8fkq_giCAVMxxH-o"], ["confirmation_sent_at", "2016-03-11 01:52:05.632362"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.2ms Sent mail to user@example.com (2.5ms) Date: Fri, 11 Mar 2016 01:52:05 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e224c59c64d_d40dd50e01175@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:05.642406"], ["updated_at", "2016-03-11 01:52:05.642406"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:05.657065"], ["updated_at", "2016-03-11 01:52:05.657065"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:52:05.668016"], ["updated_at", "2016-03-11 01:52:05.668751"], ["id", 1]]  (9.1ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (52.9ms) Completed 500 Internal Server Error in 57ms (ActiveRecord: 0.0ms)  (12.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "iYeAvf9DpRWsXM6MPSSQ"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$WYq.hJWNRfU.U65NMFCppOzpfU1CGFuP5ZA.Nmby9Ck37yhhPfj7K"], ["confirmed_at", "2016-03-11 01:52:06.031416"], ["authentication_token", "iYeAvf9DpRWsXM6MPSSQ"], ["created_at", "2016-03-11 01:52:06.034710"], ["updated_at", "2016-03-11 01:52:06.034710"]]  (14.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:52:06.082520"], ["current_sign_in_at", "2016-03-11 01:52:06.082520"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:52:06.084389"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (47.5ms) Completed 500 Internal Server Error in 55ms (ActiveRecord: 0.6ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vSx-nnUryTAcuTszbJv7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$lgejOoSzEI0u4NJlk6LKAe1vINFEHetPPjrYpfq2YqqeBSYQU84B2"], ["confirmed_at", "2016-03-11 01:52:06.258090"], ["authentication_token", "vSx-nnUryTAcuTszbJv7"], ["created_at", "2016-03-11 01:52:06.261288"], ["updated_at", "2016-03-11 01:52:06.261288"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:06.278100"], ["updated_at", "2016-03-11 01:52:06.278100"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:06.292405"], ["updated_at", "2016-03-11 01:52:06.292405"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "C5FT54_XZMu4ta_Dxp-C"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$xmP54zbuwp0PJ85BA8qVxuozOv1yvhvd4g/hxKvoMeCZDGs6IsLHi"], ["confirmed_at", "2016-03-11 01:52:06.305643"], ["authentication_token", "C5FT54_XZMu4ta_Dxp-C"], ["created_at", "2016-03-11 01:52:06.308124"], ["updated_at", "2016-03-11 01:52:06.308124"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 2], ["created_at", "2016-03-11 01:52:06.322765"], ["updated_at", "2016-03-11 01:52:06.322765"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:52:06.336304"], ["updated_at", "2016-03-11 01:52:06.336304"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.1ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.2ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WzxCqUpz_q1yTcyKp2iy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$UnwS2lWniYQTadggcc2aYezMpsJJHY6sUZe8VLnUbtwA.kOOuCE86"], ["confirmed_at", "2016-03-11 01:52:06.489723"], ["authentication_token", "WzxCqUpz_q1yTcyKp2iy"], ["created_at", "2016-03-11 01:52:06.492780"], ["updated_at", "2016-03-11 01:52:06.492780"]]  (13.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:06.511534"], ["updated_at", "2016-03-11 01:52:06.511534"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:06.525297"], ["updated_at", "2016-03-11 01:52:06.525297"]]  (10.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (64.1ms) Completed 500 Internal Server Error in 72ms (ActiveRecord: 0.1ms)  (12.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "P2f7LBwssFtoDAhUsqdG"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$WekhTjhZWHduxcJr5esyIOXC4m4G/zYpIbgqn2WbbEmrguPL7rKgq"], ["confirmed_at", "2016-03-11 01:52:06.690742"], ["authentication_token", "P2f7LBwssFtoDAhUsqdG"], ["created_at", "2016-03-11 01:52:06.694105"], ["updated_at", "2016-03-11 01:52:06.694105"]]  (8.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:06.708512"], ["updated_at", "2016-03-11 01:52:06.708512"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:06.724285"], ["updated_at", "2016-03-11 01:52:06.724285"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (84.3ms) Completed 500 Internal Server Error in 95ms (ActiveRecord: 0.1ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "dJUpnm5m9sgCwBW9H-sn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$xjASr9hrTHmw52X8ViAzMOydrlfpnidjiBTMwq3rFiKYmv5jEWQFa"], ["confirmed_at", "2016-03-11 01:52:06.916156"], ["authentication_token", "dJUpnm5m9sgCwBW9H-sn"], ["created_at", "2016-03-11 01:52:06.921040"], ["updated_at", "2016-03-11 01:52:06.921040"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 01:52:06.938903"], ["updated_at", "2016-03-11 01:52:06.938903"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:52:06.954129"], ["updated_at", "2016-03-11 01:52:06.954129"]]  (8.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:52:06 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (65.0ms) Completed 500 Internal Server Error in 76ms (ActiveRecord: 0.1ms)  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NWhRmTtcxtsjx3ovevxn"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$/hU6ovpaLKrQtOAEbLBSFubSLCpU6B0FK6KHvEen9vtVhzH6ylqXi"], ["confirmed_at", "2016-03-11 01:53:16.657331"], ["authentication_token", "NWhRmTtcxtsjx3ovevxn"], ["created_at", "2016-03-11 01:53:16.724414"], ["updated_at", "2016-03-11 01:53:16.724414"]]  (18.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:16 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (283.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.8ms) Completed 200 OK in 779ms (Views: 748.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:17 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (2.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:17.579832"], ["current_sign_in_at", "2016-03-11 01:53:17.579832"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:17.580908"], ["id", 1]]  (12.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 64ms (ActiveRecord: 16.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:17 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (18.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (87.2ms) Completed 500 Internal Server Error in 184ms (ActiveRecord: 1.2ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.4ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8vMRSynPXixbKr-L-8z5"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$96qeWyd.eBwmJT2qpzjTPeMLhBjuAu.NwsMN56f3ZHoCMH/BfpBlK"], ["confirmed_at", "2016-03-11 01:53:17.897790"], ["authentication_token", "8vMRSynPXixbKr-L-8z5"], ["created_at", "2016-03-11 01:53:17.903379"], ["updated_at", "2016-03-11 01:53:17.903379"]]  (11.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:17.952446"], ["updated_at", "2016-03-11 01:53:17.952446"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:18.049020"], ["updated_at", "2016-03-11 01:53:18.049020"]]  (10.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (2.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (15.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 25.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (35.6ms) Completed 500 Internal Server Error in 81ms (ActiveRecord: 1.9ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:53:18.303017"], ["updated_at", "2016-03-11 01:53:18.303017"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (32.9ms) Completed 500 Internal Server Error in 55ms (ActiveRecord: 1.7ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (57.0ms) Completed 500 Internal Server Error in 78ms (ActiveRecord: 1.5ms)  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:53:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "snv1wEsNmq8gom8yK_ry"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "7fdaa46956e0e9eed022d3c865698a7e03b6643847cc9c54e5f47250d54958ee"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$hwvKAh3GeOhf.qMiz28hFOuMYI5WejyYJ1myIL9nOAVayph2bNtB."], ["authentication_token", "snv1wEsNmq8gom8yK_ry"], ["created_at", "2016-03-11 01:53:18.659460"], ["updated_at", "2016-03-11 01:53:18.659460"], ["confirmation_token", "Tn5sbgxwLbTYKrXG6xdk"], ["confirmation_sent_at", "2016-03-11 01:53:18.887801"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 356.2ms Sent mail to mtdevise@example.com (28.1ms) Date: Fri, 11 Mar 2016 01:53:19 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e2250f4849a_d4d12c30e827977@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:19.315113"], ["updated_at", "2016-03-11 01:53:19.315113"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:19.332005"], ["updated_at", "2016-03-11 01:53:19.332005"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:53:19.342640"], ["updated_at", "2016-03-11 01:53:19.343171"], ["id", 1]]  (8.9ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:19.358220"], ["current_sign_in_at", "2016-03-11 01:53:19.358220"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:19.358892"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 722ms (ActiveRecord: 43.7ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (51.5ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.4ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (47.1ms) Completed 500 Internal Server Error in 74ms (ActiveRecord: 2.1ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kzdCG91EaagD7ewDg5Ct"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$BMYm9XDcD3p4kedjgnJmQebpNTHojleGu7AOpY.MthmV2vLJPK/IK"], ["confirmed_at", "2016-03-11 01:53:19.707210"], ["authentication_token", "kzdCG91EaagD7ewDg5Ct"], ["created_at", "2016-03-11 01:53:19.709834"], ["updated_at", "2016-03-11 01:53:19.709834"]]  (8.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:19.722456"], ["updated_at", "2016-03-11 01:53:19.722456"]]  (6.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:19.732863"], ["updated_at", "2016-03-11 01:53:19.732863"]]  (8.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:19.764894"], ["current_sign_in_at", "2016-03-11 01:53:19.764894"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:19.766039"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (55.0ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.4ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (58.3ms) Completed 500 Internal Server Error in 67ms (ActiveRecord: 0.0ms)  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "g2E_9TnFrzQkDWmSpwuy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$vS4jYZ.76S3WW.oyefCS2eJNYT.HwAMGe9Rifchxil/p20WEWsoau"], ["confirmed_at", "2016-03-11 01:53:20.071027"], ["authentication_token", "g2E_9TnFrzQkDWmSpwuy"], ["created_at", "2016-03-11 01:53:20.074113"], ["updated_at", "2016-03-11 01:53:20.074113"]]  (11.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:20.091327"], ["updated_at", "2016-03-11 01:53:20.091327"]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:20.109482"], ["updated_at", "2016-03-11 01:53:20.109482"]]  (29.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (54.5ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mSttJbpqmEabcYqTh_JH"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$E5xYgd3.K8AGMDgz6j5.Cue1aQ7gWxSz3I2AzZUDPaqC184UcrDhG"], ["confirmed_at", "2016-03-11 01:53:20.302839"], ["authentication_token", "mSttJbpqmEabcYqTh_JH"], ["created_at", "2016-03-11 01:53:20.305626"], ["updated_at", "2016-03-11 01:53:20.305626"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:20.321782"], ["updated_at", "2016-03-11 01:53:20.321782"]]  (8.4ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:20.335257"], ["updated_at", "2016-03-11 01:53:20.335257"]]  (8.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:20.374615"], ["current_sign_in_at", "2016-03-11 01:53:20.374615"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:20.375632"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (40.7ms) Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FCyYf3dCmdLnC92CYoJT"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$XSJsSV6JKLG2izWZW.Np5OSGq5NMN13/pFz9XNaMJ15rhWy6/jJyW"], ["confirmed_at", "2016-03-11 01:53:20.538949"], ["authentication_token", "FCyYf3dCmdLnC92CYoJT"], ["created_at", "2016-03-11 01:53:20.542019"], ["updated_at", "2016-03-11 01:53:20.542019"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:20.555448"], ["updated_at", "2016-03-11 01:53:20.555448"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:20.568609"], ["updated_at", "2016-03-11 01:53:20.568609"]]  (8.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (78.5ms) Completed 500 Internal Server Error in 86ms (ActiveRecord: 0.2ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "TSTmJswJxXvY6fu_Kqyh"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$R.LND/KfzddC3EG7hpiXie1tf5QY4Yq5otR2DcRwve/QikYnwMYJW"], ["confirmed_at", "2016-03-11 01:53:20.747797"], ["authentication_token", "TSTmJswJxXvY6fu_Kqyh"], ["created_at", "2016-03-11 01:53:20.751127"], ["updated_at", "2016-03-11 01:53:20.751127"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:20.769026"], ["updated_at", "2016-03-11 01:53:20.769026"]]  (8.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:20.782362"], ["updated_at", "2016-03-11 01:53:20.782362"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:20 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (58.1ms) Completed 500 Internal Server Error in 68ms (ActiveRecord: 0.1ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hPjmLKNSo5ouEbpF1dBA"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$99polXhaO5qe0yg0WLuGAuYERuZGh1Lbty6rseqxwBoQ9xmEfmbne"], ["confirmed_at", "2016-03-11 01:53:20.940007"], ["authentication_token", "hPjmLKNSo5ouEbpF1dBA"], ["created_at", "2016-03-11 01:53:20.943509"], ["updated_at", "2016-03-11 01:53:20.943509"]]  (9.3ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:20.958332"], ["updated_at", "2016-03-11 01:53:20.958332"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:20.970506"], ["updated_at", "2016-03-11 01:53:20.970506"]]  (6.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "d8yC2e-ytZWtgM8gD1iM"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$uJ07eE00G/Edspq43t0YaeZ56wh0VO0XFBgMCU3CLlg1MaWUxM0qK"], ["confirmed_at", "2016-03-11 01:53:20.981743"], ["authentication_token", "d8yC2e-ytZWtgM8gD1iM"], ["created_at", "2016-03-11 01:53:20.984465"], ["updated_at", "2016-03-11 01:53:20.984465"]]  (12.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 01:53:21.003111"], ["updated_at", "2016-03-11 01:53:21.003111"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:53:21.017109"], ["updated_at", "2016-03-11 01:53:21.017109"]]  (11.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (71.7ms) Completed 500 Internal Server Error in 80ms (ActiveRecord: 0.2ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "VyEjzJSbc6MT9yTYzsUS"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$9QcGpsBDHvbb0x9nK19FbOEafQLKOiiGMWcrdPMLDA2d8YF57S7fq"], ["confirmed_at", "2016-03-11 01:53:21.192587"], ["authentication_token", "VyEjzJSbc6MT9yTYzsUS"], ["created_at", "2016-03-11 01:53:21.196806"], ["updated_at", "2016-03-11 01:53:21.196806"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:21.212429"], ["updated_at", "2016-03-11 01:53:21.212429"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:21.226588"], ["updated_at", "2016-03-11 01:53:21.226588"]]  (7.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (66.6ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 0.2ms)  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xL88yBvnDyLSs_34xc_K"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$ObMZE4Mr4uIOgDEcbzodPeyWubUqtTtN1BokdN0lvnfwbhfjtBVE."], ["confirmed_at", "2016-03-11 01:53:21.428932"], ["authentication_token", "xL88yBvnDyLSs_34xc_K"], ["created_at", "2016-03-11 01:53:21.434441"], ["updated_at", "2016-03-11 01:53:21.434441"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:21.453140"], ["updated_at", "2016-03-11 01:53:21.453140"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:21.467570"], ["updated_at", "2016-03-11 01:53:21.467570"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.4ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:21.533610"], ["current_sign_in_at", "2016-03-11 01:53:21.533610"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:21.534840"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.1ms) Completed 500 Internal Server Error in 61ms (ActiveRecord: 0.3ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Jhy9HUzXyhnJYdo56Mji"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$wOAxUSV3GK.ZLsIijBYJSuVio5dzUPUHAgwQhuxqdjiWRJuFvnbIe"], ["confirmed_at", "2016-03-11 01:53:21.686922"], ["authentication_token", "Jhy9HUzXyhnJYdo56Mji"], ["created_at", "2016-03-11 01:53:21.691454"], ["updated_at", "2016-03-11 01:53:21.691454"]]  (11.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:21.711418"], ["updated_at", "2016-03-11 01:53:21.711418"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:21.725603"], ["updated_at", "2016-03-11 01:53:21.725603"]]  (11.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:21.769475"], ["current_sign_in_at", "2016-03-11 01:53:21.769475"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:21.770798"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (62.9ms) Completed 500 Internal Server Error in 71ms (ActiveRecord: 0.3ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vWzs9-ySRPRSGSEtp3tS"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$62K90YkzQJUewqQGY7kIn.5hbl1kCsKpGJftmnxBwgZrbz5RjmjBy"], ["confirmed_at", "2016-03-11 01:53:21.936332"], ["authentication_token", "vWzs9-ySRPRSGSEtp3tS"], ["created_at", "2016-03-11 01:53:21.939673"], ["updated_at", "2016-03-11 01:53:21.939673"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:21.956865"], ["updated_at", "2016-03-11 01:53:21.956865"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:21.974207"], ["updated_at", "2016-03-11 01:53:21.974207"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:22.029126"], ["current_sign_in_at", "2016-03-11 01:53:22.029126"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:22.030516"], ["id", 1]]  (12.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 13.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (53.4ms) Completed 500 Internal Server Error in 62ms (ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sJdzVwWj1dTM7cxwyWXp"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$mPUxoeX1Be937wyB/gaZk.T5.JwvkLh0cL00HzvqFeqp6p9U/rrm6"], ["confirmed_at", "2016-03-11 01:53:22.190226"], ["authentication_token", "sJdzVwWj1dTM7cxwyWXp"], ["created_at", "2016-03-11 01:53:22.194153"], ["updated_at", "2016-03-11 01:53:22.194153"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:22.210857"], ["updated_at", "2016-03-11 01:53:22.210857"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:22.226359"], ["updated_at", "2016-03-11 01:53:22.226359"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:22.266791"], ["current_sign_in_at", "2016-03-11 01:53:22.266791"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:22.267842"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (116.3ms) Completed 500 Internal Server Error in 124ms (ActiveRecord: 0.4ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BXKiXs59gK8jPLis2yWL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$F5J2DDCR334pZNCt3Gto9O0GLYRRBLwAW4jvFDgOl3pzQmLGlB0t."], ["confirmed_at", "2016-03-11 01:53:22.527132"], ["authentication_token", "BXKiXs59gK8jPLis2yWL"], ["created_at", "2016-03-11 01:53:22.529961"], ["updated_at", "2016-03-11 01:53:22.529961"]]  (7.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:22.562714"], ["current_sign_in_at", "2016-03-11 01:53:22.562714"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:22.563734"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (49.7ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 0.3ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (45.3ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:53:22 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KYj3EY_7cscqrpZAV7R8"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "8f34bdb177af487d206d432dac688f1495c419fa94a40e74f3ae656e77f0ca1b"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$TbCwhZ98f5GTQ3akea0ILupzHfjBMJuVwizNoU9L08exT/JNdPHO6"], ["authentication_token", "KYj3EY_7cscqrpZAV7R8"], ["created_at", "2016-03-11 01:53:22.979521"], ["updated_at", "2016-03-11 01:53:22.979521"], ["confirmation_token", "ZgCvTDy8uR2MyGC1yo7A"], ["confirmation_sent_at", "2016-03-11 01:53:22.980377"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.2ms Sent mail to user@example.com (3.1ms) Date: Fri, 11 Mar 2016 01:53:22 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22512f166f_d4d12c30e82806f@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:22.991061"], ["updated_at", "2016-03-11 01:53:22.991061"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:23.006986"], ["updated_at", "2016-03-11 01:53:23.006986"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:53:23.019052"], ["updated_at", "2016-03-11 01:53:23.019855"], ["id", 1]]  (9.5ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.1ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1BSMreZ5QV8-BkQuzsRi"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$hQoIx29KHQZi.F1oohY/3OvUS1Ja0.eIXdtkNObK7XBa71f63rrdi"], ["confirmed_at", "2016-03-11 01:53:23.220232"], ["authentication_token", "1BSMreZ5QV8-BkQuzsRi"], ["created_at", "2016-03-11 01:53:23.222873"], ["updated_at", "2016-03-11 01:53:23.222873"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:23.237267"], ["updated_at", "2016-03-11 01:53:23.237267"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:23.249949"], ["updated_at", "2016-03-11 01:53:23.249949"]]  (8.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hUqwV_XPGWCM_sHNujn3"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$dOw164SSqlSK03D1bloI6e4Sn96sw0x.26GgUjhVJXV/flaUBujR2"], ["confirmed_at", "2016-03-11 01:53:23.262185"], ["authentication_token", "hUqwV_XPGWCM_sHNujn3"], ["created_at", "2016-03-11 01:53:23.264883"], ["updated_at", "2016-03-11 01:53:23.264883"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 01:53:23.279804"], ["updated_at", "2016-03-11 01:53:23.279804"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:53:23.292744"], ["updated_at", "2016-03-11 01:53:23.292744"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:53:23.312718"], ["updated_at", "2016-03-11 01:53:23.312718"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:53:23.324363"], ["updated_at", "2016-03-11 01:53:23.324363"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.5ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:23.358288"], ["current_sign_in_at", "2016-03-11 01:53:23.358288"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:23.359431"], ["id", 2]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (45.7ms) Completed 500 Internal Server Error in 56ms (ActiveRecord: 0.5ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sX_zUFmTRLtBF5LxWP17"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$tCZAQbVJRTmaoe0z23bP8.RNW7f1QH7SU7BDqKWPZ8XCO1DOngv2W"], ["confirmed_at", "2016-03-11 01:53:23.506036"], ["authentication_token", "sX_zUFmTRLtBF5LxWP17"], ["created_at", "2016-03-11 01:53:23.509175"], ["updated_at", "2016-03-11 01:53:23.509175"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:53:23.523141"], ["updated_at", "2016-03-11 01:53:23.523141"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:53:23.535840"], ["updated_at", "2016-03-11 01:53:23.535840"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Cbxsj1ssnsZ2GDuVByrr"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$VplSwYmz14yXQ4wClrvAJu/Tpcz5.CQx.9B4YNB3vtx/9l1Nm1tWG"], ["confirmed_at", "2016-03-11 01:53:23.549188"], ["authentication_token", "Cbxsj1ssnsZ2GDuVByrr"], ["created_at", "2016-03-11 01:53:23.551554"], ["updated_at", "2016-03-11 01:53:23.551554"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 01:53:23.565619"], ["updated_at", "2016-03-11 01:53:23.565619"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:53:23.582444"], ["updated_at", "2016-03-11 01:53:23.582444"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:53:23.592074"], ["updated_at", "2016-03-11 01:53:23.592074"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:53:23.603129"], ["updated_at", "2016-03-11 01:53:23.603129"]]  (7.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:53:23.634467"], ["current_sign_in_at", "2016-03-11 01:53:23.634467"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:53:23.635320"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:53:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (43.6ms) Completed 500 Internal Server Error in 49ms (ActiveRecord: 0.3ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (22.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (22.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "AdCCtT99Vb97evwkbnG3"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$P570liFZqaaSi4JLlJ.A4.cMNRk0mkpoeEgEu1mXgh1lm9LbBzFK2"], ["confirmed_at", "2016-03-11 01:55:09.352731"], ["authentication_token", "AdCCtT99Vb97evwkbnG3"], ["created_at", "2016-03-11 01:55:09.452474"], ["updated_at", "2016-03-11 01:55:09.452474"]]  (13.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:09.499350"], ["updated_at", "2016-03-11 01:55:09.499350"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:09.607432"], ["updated_at", "2016-03-11 01:55:09.607432"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xporb5vfvM3ZZ67kZ7CG"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$x2u8ghIMyMhpNEA55AveZu54ZE6QOkkMgCO7TNLR1jJOntI7/Hfum"], ["confirmed_at", "2016-03-11 01:55:09.622881"], ["authentication_token", "xporb5vfvM3ZZ67kZ7CG"], ["created_at", "2016-03-11 01:55:09.627051"], ["updated_at", "2016-03-11 01:55:09.627051"]]  (17.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", "2016-03-11 01:55:09.653654"], ["updated_at", "2016-03-11 01:55:09.653654"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:55:09.668685"], ["updated_at", "2016-03-11 01:55:09.668685"]]  (12.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:09 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (1.7ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Completed 401 Unauthorized in 26ms (ActiveRecord: 1.7ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:09 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (314.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 771ms (Views: 765.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test1"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test1"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test2@example.com"]] Completed 401 Unauthorized in 11ms (ActiveRecord: 0.9ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test1"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (13.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kXUyGG13jy6d_FueTkWv"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$l0AXahRhGPTNw7F9jZTew.F61UUw1G1Jli8R6.HJcg/oyAYtyXfYO"], ["confirmed_at", "2016-03-11 01:55:10.674774"], ["authentication_token", "kXUyGG13jy6d_FueTkWv"], ["created_at", "2016-03-11 01:55:10.678819"], ["updated_at", "2016-03-11 01:55:10.678819"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:10.694754"], ["updated_at", "2016-03-11 01:55:10.694754"]]  (9.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:10.709144"], ["updated_at", "2016-03-11 01:55:10.709144"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:10 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test3"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:10.765697"], ["current_sign_in_at", "2016-03-11 01:55:10.765697"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:10.766768"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://test3.example.com/ Completed 302 Found in 45ms (ActiveRecord: 12.8ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 15.6ms | ActiveRecord: 0.6ms)  (15.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wLsz28d9sU5_KXsHnfxN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$RTKmtLrm34k5aCNQL64/VuR5Fa7HrZPKQW.ActY1DGEahSHRVN7C2"], ["confirmed_at", "2016-03-11 01:55:10.990751"], ["authentication_token", "wLsz28d9sU5_KXsHnfxN"], ["created_at", "2016-03-11 01:55:10.994707"], ["updated_at", "2016-03-11 01:55:10.994707"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:11.011191"], ["updated_at", "2016-03-11 01:55:11.011191"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:11.027100"], ["updated_at", "2016-03-11 01:55:11.027100"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test4"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.7ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Xe7EKYA2jLqrswQ3gaEz"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$cVU1CU62c6I/Z0A8oLofaeV8C6LWda7SIQ6rk1dteh3e7KR9zIHKm"], ["confirmed_at", "2016-03-11 01:55:11.174330"], ["authentication_token", "Xe7EKYA2jLqrswQ3gaEz"], ["created_at", "2016-03-11 01:55:11.177276"], ["updated_at", "2016-03-11 01:55:11.177276"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:11.194168"], ["updated_at", "2016-03-11 01:55:11.194168"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:11.205343"], ["updated_at", "2016-03-11 01:55:11.205343"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test5"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test5@example.com"]] Completed 401 Unauthorized in 6ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "p9pxyuAdjSXiZCBBCxxA"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$sYmR3JOZlXPbyn.I40AvLOCxhyC/ZmMf85M406i.Eyrt1jgRnLAki"], ["confirmed_at", "2016-03-11 01:55:11.439430"], ["authentication_token", "p9pxyuAdjSXiZCBBCxxA"], ["created_at", "2016-03-11 01:55:11.442842"], ["updated_at", "2016-03-11 01:55:11.442842"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:11.457646"], ["updated_at", "2016-03-11 01:55:11.457646"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:11.472011"], ["updated_at", "2016-03-11 01:55:11.472011"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test6@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:11.512275"], ["current_sign_in_at", "2016-03-11 01:55:11.512275"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:11.513125"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 15.2ms | ActiveRecord: 0.6ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6mnBJVvFHs7XZ-os2FrM"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$OPQ7D5Fa9G1VkH/jJftlw.LEpJCJm.ZmM1o7u66wng7fs3L7N.H/y"], ["confirmed_at", "2016-03-11 01:55:11.666380"], ["authentication_token", "6mnBJVvFHs7XZ-os2FrM"], ["created_at", "2016-03-11 01:55:11.669624"], ["updated_at", "2016-03-11 01:55:11.669624"]]  (8.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:11.703838"], ["current_sign_in_at", "2016-03-11 01:55:11.703838"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:11.704808"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.3ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (17.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "swXDstHG1kuiNEPVuYjo"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$CEqPRklZ8HCMCO139hLA5efzykBhQZbQ0INs4OvcFBhFOZmKGg.de"], ["confirmed_at", "2016-03-11 01:55:12.074455"], ["authentication_token", "swXDstHG1kuiNEPVuYjo"], ["created_at", "2016-03-11 01:55:12.077766"], ["updated_at", "2016-03-11 01:55:12.077766"]]  (8.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:12.092863"], ["updated_at", "2016-03-11 01:55:12.092863"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:12.106137"], ["updated_at", "2016-03-11 01:55:12.106137"]]  (7.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:12.143083"], ["current_sign_in_at", "2016-03-11 01:55:12.143083"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:12.144061"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 01:55:12.198776"], ["updated_at", "2016-03-11 01:55:12.198776"]]  (11.1ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 01:55:12.220102"], ["updated_at", "2016-03-11 01:55:12.220102"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 01:55:12.237465"], ["id", 2]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 59ms (ActiveRecord: 37.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (10.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EehxCsFs22vFm2sDt_VW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$DNePY2HzY6WYBKBt09CQYe6nSnMXXMAiTKMcZrBt2o/qNjs7J7Ex6"], ["confirmed_at", "2016-03-11 01:55:12.338103"], ["authentication_token", "EehxCsFs22vFm2sDt_VW"], ["created_at", "2016-03-11 01:55:12.341110"], ["updated_at", "2016-03-11 01:55:12.341110"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:12.356842"], ["updated_at", "2016-03-11 01:55:12.356842"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:12.369594"], ["updated_at", "2016-03-11 01:55:12.369594"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:12.405766"], ["current_sign_in_at", "2016-03-11 01:55:12.405766"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:12.406624"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 8.0ms | ActiveRecord: 1.6ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yS6yf9fCSxcc8tMigzSP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$Q4prvf7ukdZdXybb7oI5ku1Clx4LeJhjCpqvxub3fl.CAF1dfP2Le"], ["confirmed_at", "2016-03-11 01:55:12.547466"], ["authentication_token", "yS6yf9fCSxcc8tMigzSP"], ["created_at", "2016-03-11 01:55:12.551218"], ["updated_at", "2016-03-11 01:55:12.551218"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:12.567868"], ["updated_at", "2016-03-11 01:55:12.567868"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:12.582598"], ["updated_at", "2016-03-11 01:55:12.582598"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:12.616478"], ["current_sign_in_at", "2016-03-11 01:55:12.616478"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:12.617418"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.2ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5kzQCTa8Ko7E8vsfDw9B"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$gkElOY1M0w72DcNxGJ3xCOibxF8dCDDMNA07kW8JLnqfegPq1Dl3C"], ["confirmed_at", "2016-03-11 01:55:12.744981"], ["authentication_token", "5kzQCTa8Ko7E8vsfDw9B"], ["created_at", "2016-03-11 01:55:12.747883"], ["updated_at", "2016-03-11 01:55:12.747883"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:12.762375"], ["updated_at", "2016-03-11 01:55:12.762375"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:12.774371"], ["updated_at", "2016-03-11 01:55:12.774371"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:12.828138"], ["current_sign_in_at", "2016-03-11 01:55:12.828138"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:12.829613"], ["id", 1]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test10"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.0ms) DELETE FROM "mtdevise_accounts";  (2.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "84easvsKeF2WB4Qryfjo"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$.Rd/Vf.AmL7tJl7yElMGKeJaUM2MZ33EWDBwvT7PCLG.pstt3mi1."], ["confirmed_at", "2016-03-11 01:55:13.019392"], ["authentication_token", "84easvsKeF2WB4Qryfjo"], ["created_at", "2016-03-11 01:55:13.022934"], ["updated_at", "2016-03-11 01:55:13.022934"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:13.040003"], ["updated_at", "2016-03-11 01:55:13.040003"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:13.057496"], ["updated_at", "2016-03-11 01:55:13.057496"]]  (7.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (51.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (54.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 59.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EFLWawiD-4cpyjsYH97M"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$n2akxupKTlSAZ7swODDSteECHGYl54MirLtPESvtRhYaqtPSoU3FK"], ["confirmed_at", "2016-03-11 01:55:13.244077"], ["authentication_token", "EFLWawiD-4cpyjsYH97M"], ["created_at", "2016-03-11 01:55:13.247154"], ["updated_at", "2016-03-11 01:55:13.247154"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:13.263019"], ["updated_at", "2016-03-11 01:55:13.263019"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:13.276947"], ["updated_at", "2016-03-11 01:55:13.276947"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.5ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:13.330291"], ["current_sign_in_at", "2016-03-11 01:55:13.330291"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:13.332522"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 11.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8WxjUnPCPDcHzJHhBXUK"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$iiK1SCRBwr9CWIpoOcjMt.I/MdkpV5DIWuKg66K89ppIoLpVu6G5a"], ["confirmed_at", "2016-03-11 01:55:13.571035"], ["authentication_token", "8WxjUnPCPDcHzJHhBXUK"], ["created_at", "2016-03-11 01:55:13.575651"], ["updated_at", "2016-03-11 01:55:13.575651"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:13.595414"], ["updated_at", "2016-03-11 01:55:13.595414"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:13.609458"], ["updated_at", "2016-03-11 01:55:13.609458"]]  (11.1ms) commit transaction  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sxxusszKGt51ZRHYEKsn"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$PJY2dqe/lOAYJ4LKHrj0JOuEq3kOEFiIZkEegSBpA/RqRge.rKlbS"], ["confirmed_at", "2016-03-11 01:55:13.625600"], ["authentication_token", "sxxusszKGt51ZRHYEKsn"], ["created_at", "2016-03-11 01:55:13.629692"], ["updated_at", "2016-03-11 01:55:13.629692"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 2], ["created_at", "2016-03-11 01:55:13.647577"], ["updated_at", "2016-03-11 01:55:13.647577"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:55:13.664959"], ["updated_at", "2016-03-11 01:55:13.664959"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:55:13.687790"], ["updated_at", "2016-03-11 01:55:13.687790"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:55:13.701019"], ["updated_at", "2016-03-11 01:55:13.701019"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.3ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:13.746561"], ["current_sign_in_at", "2016-03-11 01:55:13.746561"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:13.748155"], ["id", 1]]  (11.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:55:13 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.3ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "A1Esiqb6Sc7unpVBraSP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$FUQpxe/4QPwLxr2kVsEX5OrlLMzECI92wfe35JRnjFGFgUSMedzbG"], ["confirmed_at", "2016-03-11 01:55:13.883422"], ["authentication_token", "A1Esiqb6Sc7unpVBraSP"], ["created_at", "2016-03-11 01:55:13.886737"], ["updated_at", "2016-03-11 01:55:13.886737"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:13.903316"], ["updated_at", "2016-03-11 01:55:13.903316"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:13.916863"], ["updated_at", "2016-03-11 01:55:13.916863"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zsughWKYoK4T3RHvirPd"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$Wba9.YzAVaxDimyYUgYRIOl3NhZyhP4jDbhLNh15AyzVih5lD/dFC"], ["confirmed_at", "2016-03-11 01:55:13.930115"], ["authentication_token", "zsughWKYoK4T3RHvirPd"], ["created_at", "2016-03-11 01:55:13.932829"], ["updated_at", "2016-03-11 01:55:13.932829"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 2], ["created_at", "2016-03-11 01:55:13.948641"], ["updated_at", "2016-03-11 01:55:13.948641"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:55:13.962368"], ["updated_at", "2016-03-11 01:55:13.962368"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:55:13.975306"], ["updated_at", "2016-03-11 01:55:13.975306"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:55:13.986999"], ["updated_at", "2016-03-11 01:55:13.986999"]]  (7.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:14.025375"], ["current_sign_in_at", "2016-03-11 01:55:14.025375"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:14.026597"], ["id", 2]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (10.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FaWa62BPUYaC1wzRsMLt"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$On/drzPIZjr9GxVOqbAgzuDzQmVtMgQmb2YYhU3/izs8JYVe3OpHW"], ["confirmed_at", "2016-03-11 01:55:14.174510"], ["authentication_token", "FaWa62BPUYaC1wzRsMLt"], ["created_at", "2016-03-11 01:55:14.178493"], ["updated_at", "2016-03-11 01:55:14.178493"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:14.217559"], ["current_sign_in_at", "2016-03-11 01:55:14.217559"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:14.218514"], ["id", 1]]  (9.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:55:14.312177"], ["updated_at", "2016-03-11 01:55:14.312177"]]  (10.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 12.1ms | ActiveRecord: 1.7ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:14 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RU9XhUALDqV1jnV4mpXy"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "1a18e7bdb22615cc1c92baaebc39afbb6d4e74ac0c448a2d40c4ea691ad3c8dd"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$uwOMA7mPra4vGpwWyiFfYOVKCzZ/IZa8Wc/.Wgj8MEY254wSdgstO"], ["authentication_token", "RU9XhUALDqV1jnV4mpXy"], ["created_at", "2016-03-11 01:55:14.517019"], ["updated_at", "2016-03-11 01:55:14.517019"], ["confirmation_token", "PF2mHy5pV9mASssi258F"], ["confirmation_sent_at", "2016-03-11 01:55:14.759398"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (7.7ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 492.2ms Sent mail to mtdevise@example.com (34.2ms) Date: Fri, 11 Mar 2016 01:55:15 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e225834a62b_d6511c50ec1186a@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:15.316417"], ["updated_at", "2016-03-11 01:55:15.316417"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:15.339663"], ["updated_at", "2016-03-11 01:55:15.339663"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:55:15.351405"], ["updated_at", "2016-03-11 01:55:15.352050"], ["id", 1]]  (9.3ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:55:15.367999"], ["current_sign_in_at", "2016-03-11 01:55:15.367999"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:55:15.368883"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 875ms (ActiveRecord: 44.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 6.5ms | ActiveRecord: 1.8ms)  (11.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 11.3ms | ActiveRecord: 2.1ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ys7sBDGGSyxeWZ4yz4RN"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$sfqrwTaNUdtyIXfrVYVh..Sq8K4bRxHacxRXMBZqKEMEWVUFehHye"], ["confirmed_at", "2016-03-11 01:55:15.699273"], ["authentication_token", "Ys7sBDGGSyxeWZ4yz4RN"], ["created_at", "2016-03-11 01:55:15.702436"], ["updated_at", "2016-03-11 01:55:15.702436"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:15.719006"], ["updated_at", "2016-03-11 01:55:15.719006"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:15.733869"], ["updated_at", "2016-03-11 01:55:15.733869"]]  (7.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:55:15 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 8.1ms | ActiveRecord: 1.8ms)  (10.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8J39pWwTxAVyr-Njndsq"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "7357c21c74866e77a3348a5e1f46cc185f2dce39330d7857c222fa71b789b961"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$Cwgabejxr4zR3/u69LPfsetp/DnPXWdW06dYe8KuvbBj9ye2ytjfi"], ["authentication_token", "8J39pWwTxAVyr-Njndsq"], ["created_at", "2016-03-11 01:55:15.945469"], ["updated_at", "2016-03-11 01:55:15.945469"], ["confirmation_token", "Wr8Av3pxwPBggfYd1-wi"], ["confirmation_sent_at", "2016-03-11 01:55:15.946326"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.8ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.5ms Sent mail to user@example.com (4.1ms) Date: Fri, 11 Mar 2016 01:55:15 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22583e95ec_d6511c50ec11948@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:55:15.958638"], ["updated_at", "2016-03-11 01:55:15.958638"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:55:15.973428"], ["updated_at", "2016-03-11 01:55:15.973428"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:55:15.983897"], ["updated_at", "2016-03-11 01:55:15.984409"], ["id", 1]]  (8.9ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (8.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xvjPnzLtDB7HJH4ypQzL"]] SQL (2.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$Sq3mDUWKICt4JRcgpZU2lOkNyEwWe2RJXkvpkQyy8oMh3tr1bLPlq"], ["confirmed_at", "2016-03-11 01:56:04.628828"], ["authentication_token", "xvjPnzLtDB7HJH4ypQzL"], ["created_at", "2016-03-11 01:56:04.717871"], ["updated_at", "2016-03-11 01:56:04.717871"]]  (16.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:04.770716"], ["updated_at", "2016-03-11 01:56:04.770716"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:04.865968"], ["updated_at", "2016-03-11 01:56:04.865968"]]  (11.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:04 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (6.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.8ms) Completed 200 OK in 457ms (Views: 431.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (17.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (260.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 292ms (Views: 289.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (9.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.8ms) Completed 200 OK in 49ms (Views: 20.4ms | ActiveRecord: 1.6ms)  (12.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:05 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 9.2ms | ActiveRecord: 1.6ms)  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 01:56:06.035858"], ["updated_at", "2016-03-11 01:56:06.035858"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 33ms (Views: 12.7ms | ActiveRecord: 1.8ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Be9RWSfpsrqeN7NqoPWY"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "a74299bd70a827a698a8c315fbc87b96514e2b36f1e512b97494c83f7553a410"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$LBPSFy4uBQtatK5meA8EyOR1.DxD5YKKXEDYztCGn.w6NwLc8dLnu"], ["authentication_token", "Be9RWSfpsrqeN7NqoPWY"], ["created_at", "2016-03-11 01:56:06.243483"], ["updated_at", "2016-03-11 01:56:06.243483"], ["confirmation_token", "m6H43YbGmVZ7RhWxx3nv"], ["confirmation_sent_at", "2016-03-11 01:56:06.496100"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 394.5ms Sent mail to mtdevise@example.com (53.4ms) Date: Fri, 11 Mar 2016 01:56:06 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e225b6e7724_d8410210d817078@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:06.977454"], ["updated_at", "2016-03-11 01:56:06.977454"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:06.994717"], ["updated_at", "2016-03-11 01:56:06.994717"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:56:07.007587"], ["updated_at", "2016-03-11 01:56:07.008474"], ["id", 1]]  (13.4ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:07.032553"], ["current_sign_in_at", "2016-03-11 01:56:07.032553"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:07.033694"], ["id", 1]]  (14.6ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 824ms (ActiveRecord: 54.6ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 19ms (Views: 14.4ms | ActiveRecord: 0.7ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (16.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 7.7ms | ActiveRecord: 1.7ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "seRdwD6877nF5rKyfHWk"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$sE8mkwL9fss6c3xZHoLXgugTqc3XqfHEwYZCJKr1yY4VZzerqHsfe"], ["confirmed_at", "2016-03-11 01:56:07.272358"], ["authentication_token", "seRdwD6877nF5rKyfHWk"], ["created_at", "2016-03-11 01:56:07.275132"], ["updated_at", "2016-03-11 01:56:07.275132"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (26.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 38.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:07.354960"], ["current_sign_in_at", "2016-03-11 01:56:07.354960"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:07.365442"], ["id", 1]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 54ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (8.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 16.0ms | ActiveRecord: 0.7ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Dj6ixykyUpHz1zpssE6z"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "3101fdd4414c741cc78e64638113809d49f546587ecde7153c5604a7e2956b8b"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$CPtKoeDYc3rK1RLOZFJeJO04Ac.aGBc7TXlFxzkUfBa9CXb/EpHf."], ["authentication_token", "Dj6ixykyUpHz1zpssE6z"], ["created_at", "2016-03-11 01:56:07.559062"], ["updated_at", "2016-03-11 01:56:07.559062"], ["confirmation_token", "67DAaZwei7izzsPSyn2s"], ["confirmation_sent_at", "2016-03-11 01:56:07.560164"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.7ms Sent mail to user@example.com (2.6ms) Date: Fri, 11 Mar 2016 01:56:07 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e225b78ade2_d8410210d81719c@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:07.570824"], ["updated_at", "2016-03-11 01:56:07.570824"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:07.584710"], ["updated_at", "2016-03-11 01:56:07.584710"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 01:56:07.595183"], ["updated_at", "2016-03-11 01:56:07.595960"], ["id", 1]]  (8.3ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BiyZ6suyRbqssBqSFDQu"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$LZA4xjX0uxmctBD/omZDiu7UTixnL/4zUSiTlGq.5lUWQcTv8PKrG"], ["confirmed_at", "2016-03-11 01:56:07.711755"], ["authentication_token", "BiyZ6suyRbqssBqSFDQu"], ["created_at", "2016-03-11 01:56:07.716008"], ["updated_at", "2016-03-11 01:56:07.716008"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:07.735423"], ["updated_at", "2016-03-11 01:56:07.735423"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:07.749111"], ["updated_at", "2016-03-11 01:56:07.749111"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4ohZyXgX6muL3Y9pHo8X"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$oUakJFP7a9CxzxOEGvvjz.qD8g6xoerJGA0CrM/aAaQAfOBAOGnha"], ["confirmed_at", "2016-03-11 01:56:07.882354"], ["authentication_token", "4ohZyXgX6muL3Y9pHo8X"], ["created_at", "2016-03-11 01:56:07.886786"], ["updated_at", "2016-03-11 01:56:07.886786"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:07.902874"], ["updated_at", "2016-03-11 01:56:07.902874"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:07.917184"], ["updated_at", "2016-03-11 01:56:07.917184"]]  (8.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:07.959567"], ["current_sign_in_at", "2016-03-11 01:56:07.959567"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:07.960864"], ["id", 1]]  (8.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 9.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BkjKatcsRVpkCm55xamY"]] SQL (1.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$hBID/SUgyuZesLkdnXv9bO1PVyrJvA1JTgV2ZSNpwQhOz2RpxzQYu"], ["confirmed_at", "2016-03-11 01:56:08.174345"], ["authentication_token", "BkjKatcsRVpkCm55xamY"], ["created_at", "2016-03-11 01:56:08.178256"], ["updated_at", "2016-03-11 01:56:08.178256"]]  (9.7ms) commit transaction  (0.3ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:08.196372"], ["updated_at", "2016-03-11 01:56:08.196372"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:08.212052"], ["updated_at", "2016-03-11 01:56:08.212052"]]  (11.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.2ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:08.256942"], ["current_sign_in_at", "2016-03-11 01:56:08.256942"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:08.258235"], ["id", 1]]  (12.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.6ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 01:56:08.319571"], ["updated_at", "2016-03-11 01:56:08.319571"]]  (11.7ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 01:56:08.339630"], ["updated_at", "2016-03-11 01:56:08.339630"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.4ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 01:56:08.357326"], ["id", 2]]  (7.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 57ms (ActiveRecord: 33.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.4ms)  (11.9ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LNgjHuchgeK8Xy_fCEox"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$xRb8ZLeY06CURmpGuc6Px.YfuHK4DiZV45.uzqHSrcKDj4z.cwOcq"], ["confirmed_at", "2016-03-11 01:56:08.456764"], ["authentication_token", "LNgjHuchgeK8Xy_fCEox"], ["created_at", "2016-03-11 01:56:08.460296"], ["updated_at", "2016-03-11 01:56:08.460296"]]  (12.3ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:08.479272"], ["updated_at", "2016-03-11 01:56:08.479272"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:08.493760"], ["updated_at", "2016-03-11 01:56:08.493760"]]  (8.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:08.532922"], ["current_sign_in_at", "2016-03-11 01:56:08.532922"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:08.534286"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 5.9ms | ActiveRecord: 1.5ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "VnTnQztXL2G982zVv1VE"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$HNmAbafdBVKYXetB0.jXBup1AKURQC3f6NrsL3tU0wnbqp6zc8gk6"], ["confirmed_at", "2016-03-11 01:56:08.679620"], ["authentication_token", "VnTnQztXL2G982zVv1VE"], ["created_at", "2016-03-11 01:56:08.682564"], ["updated_at", "2016-03-11 01:56:08.682564"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:08.698202"], ["updated_at", "2016-03-11 01:56:08.698202"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:08.710721"], ["updated_at", "2016-03-11 01:56:08.710721"]]  (8.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:08.750303"], ["current_sign_in_at", "2016-03-11 01:56:08.750303"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:08.751720"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.4ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test6"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 6.1ms | ActiveRecord: 1.7ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Qzo2xWy7Drkatxgx3_yR"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$qHfcEmBSXcq3d8WATqWzLOxynkpzilI8Hqw3AY1pq37Opd/jd0vj2"], ["confirmed_at", "2016-03-11 01:56:08.895258"], ["authentication_token", "Qzo2xWy7Drkatxgx3_yR"], ["created_at", "2016-03-11 01:56:08.898408"], ["updated_at", "2016-03-11 01:56:08.898408"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:08.914088"], ["updated_at", "2016-03-11 01:56:08.914088"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:08.925684"], ["updated_at", "2016-03-11 01:56:08.925684"]]  (7.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:08.961290"], ["current_sign_in_at", "2016-03-11 01:56:08.961290"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:08.962376"], ["id", 1]]  (9.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 01:56:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 1.5ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "cyNAcqR9BKRen9kuRvPb"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$dAT4gysdsKAjtifLb82lTO4DRQqIXQK2DjlD.UNBEaYQIsIXbUgpC"], ["confirmed_at", "2016-03-11 01:56:09.136670"], ["authentication_token", "cyNAcqR9BKRen9kuRvPb"], ["created_at", "2016-03-11 01:56:09.139584"], ["updated_at", "2016-03-11 01:56:09.139584"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:09.155372"], ["updated_at", "2016-03-11 01:56:09.155372"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:09.169005"], ["updated_at", "2016-03-11 01:56:09.169005"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:09.206447"], ["current_sign_in_at", "2016-03-11 01:56:09.206447"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:09.207664"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms)  (10.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (3.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7X-RJzGiRoi5pnkenzzH"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$CcU64K3e2e3BfjqtbY/tXefkdPCWSFR6Y/rRm.cumJlzi9Z9H.8ZC"], ["confirmed_at", "2016-03-11 01:56:09.424518"], ["authentication_token", "7X-RJzGiRoi5pnkenzzH"], ["created_at", "2016-03-11 01:56:09.428491"], ["updated_at", "2016-03-11 01:56:09.428491"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:09.444245"], ["updated_at", "2016-03-11 01:56:09.444245"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:09.458975"], ["updated_at", "2016-03-11 01:56:09.458975"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MYKz_EtzQvJmdjbqyySf"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$8N5SJxmY15.b1.xA8WDzfuWDplu9mJ16465hraGP8.lYynO/J5T76"], ["confirmed_at", "2016-03-11 01:56:09.472759"], ["authentication_token", "MYKz_EtzQvJmdjbqyySf"], ["created_at", "2016-03-11 01:56:09.475235"], ["updated_at", "2016-03-11 01:56:09.475235"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 2], ["created_at", "2016-03-11 01:56:09.490591"], ["updated_at", "2016-03-11 01:56:09.490591"]]  (9.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:56:09.505023"], ["updated_at", "2016-03-11 01:56:09.505023"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:56:09.524735"], ["updated_at", "2016-03-11 01:56:09.524735"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:56:09.538921"], ["updated_at", "2016-03-11 01:56:09.538921"]]  (7.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:09.573467"], ["current_sign_in_at", "2016-03-11 01:56:09.573467"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:09.574663"], ["id", 2]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "X9ZBTUvzmyxJMwUfj-1N"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$JtF8usJrq19UovsIqBqpVOIa9ythXjbux/d/mVzqINptVsJyVNOiu"], ["confirmed_at", "2016-03-11 01:56:09.702211"], ["authentication_token", "X9ZBTUvzmyxJMwUfj-1N"], ["created_at", "2016-03-11 01:56:09.706515"], ["updated_at", "2016-03-11 01:56:09.706515"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:09.722742"], ["updated_at", "2016-03-11 01:56:09.722742"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:09.733930"], ["updated_at", "2016-03-11 01:56:09.733930"]]  (7.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "y5tRZAiwKgG4PvbWdjUx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$FzWYf.9PykZVPmVe0NpC6.GM5gVLW6h55SgLWVx9f6fE1u.4G6lp."], ["confirmed_at", "2016-03-11 01:56:09.745980"], ["authentication_token", "y5tRZAiwKgG4PvbWdjUx"], ["created_at", "2016-03-11 01:56:09.749615"], ["updated_at", "2016-03-11 01:56:09.749615"]]  (7.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 2], ["created_at", "2016-03-11 01:56:09.762909"], ["updated_at", "2016-03-11 01:56:09.762909"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:56:09.776339"], ["updated_at", "2016-03-11 01:56:09.776339"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 01:56:09.788602"], ["updated_at", "2016-03-11 01:56:09.788602"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 01:56:09.799815"], ["updated_at", "2016-03-11 01:56:09.799815"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:09.837966"], ["current_sign_in_at", "2016-03-11 01:56:09.837966"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:09.838893"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.6ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 01:56:09 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kCGmY2ZQyzqdXy3VsNDF"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$k4G2V6PRmg3evY6f7krZi.BuuCKo.sO3OSsqvymDZEVZby77AUJji"], ["confirmed_at", "2016-03-11 01:56:09.992088"], ["authentication_token", "kCGmY2ZQyzqdXy3VsNDF"], ["created_at", "2016-03-11 01:56:09.996114"], ["updated_at", "2016-03-11 01:56:09.996114"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:10.012094"], ["updated_at", "2016-03-11 01:56:10.012094"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:10.025497"], ["updated_at", "2016-03-11 01:56:10.025497"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "nr1ce2SydftjLMXLcUgt"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$sXcVw5GaDcvG68m8EOa2cu5mMZ0DxHSsykoC0zUFO58bGfhac.tGW"], ["confirmed_at", "2016-03-11 01:56:10.040244"], ["authentication_token", "nr1ce2SydftjLMXLcUgt"], ["created_at", "2016-03-11 01:56:10.042668"], ["updated_at", "2016-03-11 01:56:10.042668"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 2], ["created_at", "2016-03-11 01:56:10.059062"], ["updated_at", "2016-03-11 01:56:10.059062"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 01:56:10.072809"], ["updated_at", "2016-03-11 01:56:10.072809"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test22@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 1.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Cps7yJhAMtmAarZXoTdx"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$jkCg1mJ4.wx7fBAUcJXTx.KkBg7pP7areBQ36LRYBrIVtL0fbe.cy"], ["confirmed_at", "2016-03-11 01:56:10.202949"], ["authentication_token", "Cps7yJhAMtmAarZXoTdx"], ["created_at", "2016-03-11 01:56:10.206147"], ["updated_at", "2016-03-11 01:56:10.206147"]]  (8.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:10.221069"], ["updated_at", "2016-03-11 01:56:10.221069"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:10.236911"], ["updated_at", "2016-03-11 01:56:10.236911"]]  (11.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test15"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:10.284812"], ["current_sign_in_at", "2016-03-11 01:56:10.284812"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:10.285854"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://test15.example.com/ Completed 302 Found in 22ms (ActiveRecord: 11.7ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "itstGMZssHCYRvz5ugMC"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$zGg548fsUmt9763VpVDuZeB7MB..OxA1D3AQWn14er8fDezQj8Ml."], ["confirmed_at", "2016-03-11 01:56:10.387741"], ["authentication_token", "itstGMZssHCYRvz5ugMC"], ["created_at", "2016-03-11 01:56:10.391708"], ["updated_at", "2016-03-11 01:56:10.391708"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:10.408622"], ["updated_at", "2016-03-11 01:56:10.408622"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:10.423903"], ["updated_at", "2016-03-11 01:56:10.423903"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test16"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test24@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "g7p7kzAMKhzsSHFvqrMp"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$CZVk0j.giOZdeg2ok/zIxernUi5WkUOqsbo/9gGD4qIO.5V.Inhjy"], ["confirmed_at", "2016-03-11 01:56:10.562700"], ["authentication_token", "g7p7kzAMKhzsSHFvqrMp"], ["created_at", "2016-03-11 01:56:10.565627"], ["updated_at", "2016-03-11 01:56:10.565627"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 01:56:10.581788"], ["updated_at", "2016-03-11 01:56:10.581788"]]  (6.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 01:56:10.593196"], ["updated_at", "2016-03-11 01:56:10.593196"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test17"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RRvN6KMvNewqFraH_BBK"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$fgz7Kg2O1EoDkf67ipKDk.u27AZqW4.Xb0izDCqEHy3B5LpvnhJfu"], ["confirmed_at", "2016-03-11 01:56:10.758165"], ["authentication_token", "RRvN6KMvNewqFraH_BBK"], ["created_at", "2016-03-11 01:56:10.761721"], ["updated_at", "2016-03-11 01:56:10.761721"]]  (7.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 01:56:10.794007"], ["current_sign_in_at", "2016-03-11 01:56:10.794007"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 01:56:10.794892"], ["id", 1]]  (9.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 01:56:10 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 01:56:11 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 01:56:11 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (14.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (15.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (10.9ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xsHSF4GgGXp5ofGvNsbQ"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "22bb21f2fe1e8acc9643bd848e2971cb87fc4e1f229274be467c0ab06e3d7a47"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$XlUtHUll6Y.xu6pw3yXCwO.Ur8lOZk5PvsK7FxzLNsz83.vq6rubS"], ["authentication_token", "xsHSF4GgGXp5ofGvNsbQ"], ["created_at", "2016-03-11 02:01:24.456630"], ["updated_at", "2016-03-11 02:01:24.456630"], ["confirmation_token", "DjtrMzNxReXswus2FipN"], ["confirmation_sent_at", "2016-03-11 02:01:24.714063"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (9.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 475.2ms Sent mail to user@example.com (37.5ms) Date: Fri, 11 Mar 2016 02:01:25 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e226f53b4e2_d9ab030ec72861@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:25.258894"], ["updated_at", "2016-03-11 02:01:25.258894"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:25.366873"], ["updated_at", "2016-03-11 02:01:25.366873"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:01:25.402585"], ["updated_at", "2016-03-11 02:01:25.403335"], ["id", 1]]  (9.8ms) commit transaction Mtdevise::User Load (0.7ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (8.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EyTeR8rsXMHxvqp7-4fc"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$BRNoP/jgwLFlPkx/XB5m/usmraUpeGIGxIRA3J8pXDNjptXyAypIO"], ["confirmed_at", "2016-03-11 02:01:25.536362"], ["authentication_token", "EyTeR8rsXMHxvqp7-4fc"], ["created_at", "2016-03-11 02:01:25.540234"], ["updated_at", "2016-03-11 02:01:25.540234"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:25 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (280.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.5ms) Completed 200 OK in 802ms (Views: 766.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:26.412391"], ["current_sign_in_at", "2016-03-11 02:01:26.412391"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:26.413411"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 49ms (ActiveRecord: 13.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (9.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 37ms (Views: 22.9ms | ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.4ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (4.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (23.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 39.0ms | ActiveRecord: 0.0ms)  (14.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:26 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (7.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (13.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "FbVzqn5zfnH5iMw4dEv_"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$7Jj7mtm0/k1wE3JPQR1BtutovYxmXU1Uy708U7Ahse173gn7yINHy"], ["confirmed_at", "2016-03-11 02:01:27.121536"], ["authentication_token", "FbVzqn5zfnH5iMw4dEv_"], ["created_at", "2016-03-11 02:01:27.126664"], ["updated_at", "2016-03-11 02:01:27.126664"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:27.146690"], ["updated_at", "2016-03-11 02:01:27.146690"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:27.163107"], ["updated_at", "2016-03-11 02:01:27.163107"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.5ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:27.219174"], ["current_sign_in_at", "2016-03-11 02:01:27.219174"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:27.221199"], ["id", 1]]  (13.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 31ms (ActiveRecord: 14.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.5ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "54grmVP4uzguB64u4xrp"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$LjFEeJUc9ax2zZ/utl8Xn.zJHBS3ytD7cDdgzRac1EpT3TUitcQhK"], ["confirmed_at", "2016-03-11 02:01:27.340168"], ["authentication_token", "54grmVP4uzguB64u4xrp"], ["created_at", "2016-03-11 02:01:27.344583"], ["updated_at", "2016-03-11 02:01:27.344583"]]  (12.0ms) commit transaction  (0.3ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:27.366270"], ["updated_at", "2016-03-11 02:01:27.366270"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:27.383161"], ["updated_at", "2016-03-11 02:01:27.383161"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (12.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xpSyXnp1ssDPxBJwYgEe"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$Dc1C/Et37h3U1cclyWfePeOijoLteJSzI33iqqWyvBXL1RFbOfrhO"], ["confirmed_at", "2016-03-11 02:01:27.649388"], ["authentication_token", "xpSyXnp1ssDPxBJwYgEe"], ["created_at", "2016-03-11 02:01:27.653059"], ["updated_at", "2016-03-11 02:01:27.653059"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:27.671704"], ["updated_at", "2016-03-11 02:01:27.671704"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:27.688249"], ["updated_at", "2016-03-11 02:01:27.688249"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:27.739031"], ["current_sign_in_at", "2016-03-11 02:01:27.739031"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:27.739996"], ["id", 1]]  (12.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "iuzRFnnW1W49Qib3c7ez"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$T59y//CXM3cC05H1DRubu.bEXaHSv3tdayrlYNXep8VMLDH8YJ67u"], ["confirmed_at", "2016-03-11 02:01:27.892882"], ["authentication_token", "iuzRFnnW1W49Qib3c7ez"], ["created_at", "2016-03-11 02:01:27.896706"], ["updated_at", "2016-03-11 02:01:27.896706"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:27.936903"], ["current_sign_in_at", "2016-03-11 02:01:27.936903"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:27.937948"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:27 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:01:28.053597"], ["updated_at", "2016-03-11 02:01:28.053597"]]  (10.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 10.4ms | ActiveRecord: 1.9ms)  (10.1ms) DELETE FROM "things";  (14.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.0ms | ActiveRecord: 1.7ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "skLzPs2MfX5Ee6RU_3bS"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$QaB3aLj6EWufV51.F8/8KeWz9K/M4XoDU7mpcLvUJ3Vn4SYu4z7EK"], ["confirmed_at", "2016-03-11 02:01:28.383512"], ["authentication_token", "skLzPs2MfX5Ee6RU_3bS"], ["created_at", "2016-03-11 02:01:28.387187"], ["updated_at", "2016-03-11 02:01:28.387187"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:28.402825"], ["updated_at", "2016-03-11 02:01:28.402825"]]  (11.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:28.417622"], ["updated_at", "2016-03-11 02:01:28.417622"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 6.9ms | ActiveRecord: 1.5ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.7ms | ActiveRecord: 1.5ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "C77MbXrNmNuvc8mM4rPn"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "9b9f3a7198d8519b0a7d58dcfa71bfc9244fd0b5bcc51af5d1ff6ef92fdd26aa"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$2VOTySbesYdVN9z7xSeqQOd2OA6WUnRIQoGzEV2CB.AbO3fbAhSMO"], ["authentication_token", "C77MbXrNmNuvc8mM4rPn"], ["created_at", "2016-03-11 02:01:28.703861"], ["updated_at", "2016-03-11 02:01:28.703861"], ["confirmation_token", "wt7zSt1mzkSHHazAJ4kv"], ["confirmation_sent_at", "2016-03-11 02:01:28.705124"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.9ms Sent mail to mtdevise@example.com (3.0ms) Date: Fri, 11 Mar 2016 02:01:28 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e226f8ae559_d9ab030ec729cb@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:28.716402"], ["updated_at", "2016-03-11 02:01:28.716402"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:28.732788"], ["updated_at", "2016-03-11 02:01:28.732788"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:01:28.744458"], ["updated_at", "2016-03-11 02:01:28.745230"], ["id", 1]]  (9.9ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:28.764360"], ["current_sign_in_at", "2016-03-11 02:01:28.764360"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:28.765086"], ["id", 1]]  (11.3ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 84ms (ActiveRecord: 46.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:28 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.4ms)  (11.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PvEseLewpEFZyFEDDy4T"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$aMqt8NjtlPjSDJFSHb2ue.yxB8jz.rE0QABUx5h8PJI.OB8Nqspaq"], ["confirmed_at", "2016-03-11 02:01:28.923846"], ["authentication_token", "PvEseLewpEFZyFEDDy4T"], ["created_at", "2016-03-11 02:01:28.927529"], ["updated_at", "2016-03-11 02:01:28.927529"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:28.943803"], ["updated_at", "2016-03-11 02:01:28.943803"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:28.959075"], ["updated_at", "2016-03-11 02:01:28.959075"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sDZzA7VnSgywaaktD5pe"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$nAr7FLyV9y.bB.TpDHgiFeP6LhAv1W/iOgKbZnsuN3KWzN2VHXkgi"], ["confirmed_at", "2016-03-11 02:01:28.973316"], ["authentication_token", "sDZzA7VnSgywaaktD5pe"], ["created_at", "2016-03-11 02:01:28.976787"], ["updated_at", "2016-03-11 02:01:28.976787"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-11 02:01:28.993045"], ["updated_at", "2016-03-11 02:01:28.993045"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:01:29.008991"], ["updated_at", "2016-03-11 02:01:29.008991"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:01:29.031903"], ["updated_at", "2016-03-11 02:01:29.031903"]]  (10.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:01:29.044661"], ["updated_at", "2016-03-11 02:01:29.044661"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:29.086944"], ["current_sign_in_at", "2016-03-11 02:01:29.086944"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:29.088145"], ["id", 2]]  (11.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.9ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.3ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZQW-TByPxFrjWa23STWy"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$qkW7LENnth2OuHQOhTQdDehiJDmfHLhMwyr8WqY4MLgAua7QYRmTi"], ["confirmed_at", "2016-03-11 02:01:29.223301"], ["authentication_token", "ZQW-TByPxFrjWa23STWy"], ["created_at", "2016-03-11 02:01:29.226274"], ["updated_at", "2016-03-11 02:01:29.226274"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.8ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:29.241536"], ["updated_at", "2016-03-11 02:01:29.241536"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:29.257944"], ["updated_at", "2016-03-11 02:01:29.257944"]]  (8.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "y5-PfAQ-W2jgkyv_BDTy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$mDSLeX3q0gIYYah86HkIL.vj.NVm7XRdb/1kM6zcJBeGyKZn//bXC"], ["confirmed_at", "2016-03-11 02:01:29.270589"], ["authentication_token", "y5-PfAQ-W2jgkyv_BDTy"], ["created_at", "2016-03-11 02:01:29.274307"], ["updated_at", "2016-03-11 02:01:29.274307"]]  (8.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 02:01:29.288807"], ["updated_at", "2016-03-11 02:01:29.288807"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:01:29.302229"], ["updated_at", "2016-03-11 02:01:29.302229"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:01:29.313846"], ["updated_at", "2016-03-11 02:01:29.313846"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:01:29.327244"], ["updated_at", "2016-03-11 02:01:29.327244"]]  (9.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:29.367321"], ["current_sign_in_at", "2016-03-11 02:01:29.367321"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:29.368833"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.7ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (4.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zm2rmNs1z_As1554caKx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$QHnozKqbzc0yKJnla5rNlulvoJks/PEsVUUCXYDexJW79sauAo13y"], ["confirmed_at", "2016-03-11 02:01:29.534811"], ["authentication_token", "zm2rmNs1z_As1554caKx"], ["created_at", "2016-03-11 02:01:29.538764"], ["updated_at", "2016-03-11 02:01:29.538764"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:29.556180"], ["updated_at", "2016-03-11 02:01:29.556180"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:29.570433"], ["updated_at", "2016-03-11 02:01:29.570433"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:29.613328"], ["current_sign_in_at", "2016-03-11 02:01:29.613328"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:29.614660"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 7.5ms | ActiveRecord: 1.7ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ReaveGBRzt9EThjExJP5"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$Pat84z6Y7w.bpwaWWb9fDu6z8x8fccD5Msj5rqB/81UmEO2hEYTVe"], ["confirmed_at", "2016-03-11 02:01:29.763756"], ["authentication_token", "ReaveGBRzt9EThjExJP5"], ["created_at", "2016-03-11 02:01:29.768172"], ["updated_at", "2016-03-11 02:01:29.768172"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:29.785566"], ["updated_at", "2016-03-11 02:01:29.785566"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:29.802098"], ["updated_at", "2016-03-11 02:01:29.802098"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:29.849284"], ["current_sign_in_at", "2016-03-11 02:01:29.849284"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:29.850614"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:29 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 5.5ms | ActiveRecord: 1.3ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zbwuhH5_rKx-KLamh-Nu"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$ASAJCoJFlrJ4A5EVL92cE.oO7CkiRYdmtS.AHFDpA13WDHRAd1SKe"], ["confirmed_at", "2016-03-11 02:01:29.989115"], ["authentication_token", "zbwuhH5_rKx-KLamh-Nu"], ["created_at", "2016-03-11 02:01:29.992230"], ["updated_at", "2016-03-11 02:01:29.992230"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:30.007697"], ["updated_at", "2016-03-11 02:01:30.007697"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:30.022729"], ["updated_at", "2016-03-11 02:01:30.022729"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:30.064035"], ["current_sign_in_at", "2016-03-11 02:01:30.064035"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:30.064993"], ["id", 1]]  (8.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 9.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test11"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (11.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 14.1ms | ActiveRecord: 1.3ms)  (11.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xnT9e-U5N3XgZkaRyjJN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$d.H4z42OUXsdnVAOpaSYoOWU62Yeb.lcYaTWhD0N/hTm5jEcTOrje"], ["confirmed_at", "2016-03-11 02:01:30.219778"], ["authentication_token", "xnT9e-U5N3XgZkaRyjJN"], ["created_at", "2016-03-11 02:01:30.223349"], ["updated_at", "2016-03-11 02:01:30.223349"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:30.239338"], ["updated_at", "2016-03-11 02:01:30.239338"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:30.254608"], ["updated_at", "2016-03-11 02:01:30.254608"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:30.298205"], ["current_sign_in_at", "2016-03-11 02:01:30.298205"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:30.299345"], ["id", 1]]  (12.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:01:30.383201"], ["updated_at", "2016-03-11 02:01:30.383201"]]  (10.9ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:01:30.403287"], ["updated_at", "2016-03-11 02:01:30.403287"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:01:30.419552"], ["id", 2]]  (8.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 55ms (ActiveRecord: 32.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.4ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Y4kpyq_xyyc1Qi6WvHav"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$X3Z9ggT.DIQP2J7OhVFsnOhp6bXlA6/QMhynbAliiUuypwt.UCRdS"], ["confirmed_at", "2016-03-11 02:01:30.564151"], ["authentication_token", "Y4kpyq_xyyc1Qi6WvHav"], ["created_at", "2016-03-11 02:01:30.568199"], ["updated_at", "2016-03-11 02:01:30.568199"]]  (16.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:30.591009"], ["updated_at", "2016-03-11 02:01:30.591009"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:30.605711"], ["updated_at", "2016-03-11 02:01:30.605711"]]  (8.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:01:30.669359"], ["current_sign_in_at", "2016-03-11 02:01:30.669359"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:01:30.670659"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://test13.example.com/ Completed 302 Found in 24ms (ActiveRecord: 12.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms)  (12.2ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "i2GEbFqsWMkL56JXTe4m"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$LIiVb27a1s9nmB08ryTWFeSScs4XCsEQG/DYy5xELI5QZIoovpWGm"], ["confirmed_at", "2016-03-11 02:01:30.784516"], ["authentication_token", "i2GEbFqsWMkL56JXTe4m"], ["created_at", "2016-03-11 02:01:30.788683"], ["updated_at", "2016-03-11 02:01:30.788683"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:30.807717"], ["updated_at", "2016-03-11 02:01:30.807717"]]  (8.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:30.822330"], ["updated_at", "2016-03-11 02:01:30.822330"]]  (19.4ms) commit transaction  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3zL6wTayV_5-Fgdf9BsE"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$CcuylPp3funlbxTZfMZcEeBPL4KYYH5S.6vyMm.CtRjQCSZ5x7udm"], ["confirmed_at", "2016-03-11 02:01:30.847064"], ["authentication_token", "3zL6wTayV_5-Fgdf9BsE"], ["created_at", "2016-03-11 02:01:30.851020"], ["updated_at", "2016-03-11 02:01:30.851020"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 02:01:30.867772"], ["updated_at", "2016-03-11 02:01:30.867772"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:01:30.883265"], ["updated_at", "2016-03-11 02:01:30.883265"]]  (10.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:30 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test23@example.com"]] Completed 401 Unauthorized in 7ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "UAyMdbCjW7Uxor6D4oLG"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$6xfB/cRZBOBXA8aDotHtIO5JYTHu5Kj/LQWz/J4jyM4NVMv0kAOLO"], ["confirmed_at", "2016-03-11 02:01:31.035597"], ["authentication_token", "UAyMdbCjW7Uxor6D4oLG"], ["created_at", "2016-03-11 02:01:31.038862"], ["updated_at", "2016-03-11 02:01:31.038862"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:31.055526"], ["updated_at", "2016-03-11 02:01:31.055526"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:31.068823"], ["updated_at", "2016-03-11 02:01:31.068823"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test16"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "nx4CPrFQnBf2teigFLa3"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$beb1MUyg2HRsgH7OEsfF2u8gHioSZO7425we7wJU9kRm15mRSlTi."], ["confirmed_at", "2016-03-11 02:01:31.215211"], ["authentication_token", "nx4CPrFQnBf2teigFLa3"], ["created_at", "2016-03-11 02:01:31.218143"], ["updated_at", "2016-03-11 02:01:31.218143"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:01:31.234023"], ["updated_at", "2016-03-11 02:01:31.234023"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:01:31.248246"], ["updated_at", "2016-03-11 02:01:31.248246"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:01:31 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test17"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test25@example.com"]] Completed 401 Unauthorized in 7ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MmAnisYgovvbng8Z1NDx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$sE0giOaS78eWhezPG8V/Gup42GBI/4C.tLmM230iYKjmJ68qlEU8S"], ["confirmed_at", "2016-03-11 02:04:03.083688"], ["authentication_token", "MmAnisYgovvbng8Z1NDx"], ["created_at", "2016-03-11 02:04:03.171833"], ["updated_at", "2016-03-11 02:04:03.171833"]]  (17.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:03.216505"], ["updated_at", "2016-03-11 02:04:03.216505"]]  (15.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:03.313218"], ["updated_at", "2016-03-11 02:04:03.313218"]]  (14.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:03 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (3.3ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (7.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (284.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 720ms (Views: 689.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:04.099172"], ["current_sign_in_at", "2016-03-11 02:04:04.099172"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:04.100218"], ["id", 1]]  (14.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 56ms (ActiveRecord: 15.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (7.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 17.7ms | ActiveRecord: 0.7ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:04:04.227331"], ["updated_at", "2016-03-11 02:04:04.227331"]]  (10.4ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:04:04.244569"], ["updated_at", "2016-03-11 02:04:04.244569"]]  (9.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:04:04.257744"], ["id", 2]]  (9.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 48ms (ActiveRecord: 31.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (6.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LXGxUscbWjz8HYFswPex"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$u38Yie6q3XwD7dt9PXPCse7TPcuacyrmgJ86MFdKOOEw/OIb7fWNa"], ["confirmed_at", "2016-03-11 02:04:04.339682"], ["authentication_token", "LXGxUscbWjz8HYFswPex"], ["created_at", "2016-03-11 02:04:04.342311"], ["updated_at", "2016-03-11 02:04:04.342311"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:04.355131"], ["updated_at", "2016-03-11 02:04:04.355131"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:04.368144"], ["updated_at", "2016-03-11 02:04:04.368144"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:04.401337"], ["current_sign_in_at", "2016-03-11 02:04:04.401337"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:04.402224"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 17ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test2"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.2ms)  (14.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xjxmsNqPqvzKoGcJZ2ML"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$gs29aH28L89B0s72t1BLLOtWH6xTP6Ay9Z.tF5lr7gM2nMCGfMpui"], ["confirmed_at", "2016-03-11 02:04:04.599092"], ["authentication_token", "xjxmsNqPqvzKoGcJZ2ML"], ["created_at", "2016-03-11 02:04:04.602110"], ["updated_at", "2016-03-11 02:04:04.602110"]]  (7.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:04.615149"], ["updated_at", "2016-03-11 02:04:04.615149"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:04.628712"], ["updated_at", "2016-03-11 02:04:04.628712"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:04.664136"], ["current_sign_in_at", "2016-03-11 02:04:04.664136"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:04.665149"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 1.4ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mTDMz_MQ9skVbTqpgWzy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$FaJv8eRrwg4ausOLb2WNwetLcRRHB9og0hB6bzOObhxVZ7KWcDI1u"], ["confirmed_at", "2016-03-11 02:04:04.791238"], ["authentication_token", "mTDMz_MQ9skVbTqpgWzy"], ["created_at", "2016-03-11 02:04:04.793939"], ["updated_at", "2016-03-11 02:04:04.793939"]]  (7.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:04.806578"], ["updated_at", "2016-03-11 02:04:04.806578"]]  (7.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:04.817479"], ["updated_at", "2016-03-11 02:04:04.817479"]]  (10.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:04.854682"], ["current_sign_in_at", "2016-03-11 02:04:04.854682"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:04.855727"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:04 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 5.1ms | ActiveRecord: 1.6ms)  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Mbmkqkix2itH7aMREa7t"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "2cfc1e6bdfe1349d8c49f04770ba5eb74354b6bf12be0a4342f55fe530c387d3"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$GkQYxDff2LYkHKzANx0EAOtBMY9fn.KLIbyMOMcsaQjKdbdAn6lla"], ["authentication_token", "Mbmkqkix2itH7aMREa7t"], ["created_at", "2016-03-11 02:04:05.024523"], ["updated_at", "2016-03-11 02:04:05.024523"], ["confirmation_token", "JRaqnFK6y-QkYzZwiprd"], ["confirmation_sent_at", "2016-03-11 02:04:05.222700"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 369.6ms Sent mail to user@example.com (33.8ms) Date: Fri, 11 Mar 2016 02:04:05 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22795a0c68_daff330e06953f@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:05.674526"], ["updated_at", "2016-03-11 02:04:05.674526"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:05.690754"], ["updated_at", "2016-03-11 02:04:05.690754"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:04:05.704459"], ["updated_at", "2016-03-11 02:04:05.705017"], ["id", 1]]  (9.0ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "mkPFV51ybE7s8kwYKg4J"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$prl1cDmbVaMiDqx0p5O8ge/5V0h2aY.uRt4Ymqws2L/tWzoxT1aiC"], ["confirmed_at", "2016-03-11 02:04:05.820676"], ["authentication_token", "mkPFV51ybE7s8kwYKg4J"], ["created_at", "2016-03-11 02:04:05.825630"], ["updated_at", "2016-03-11 02:04:05.825630"]]  (10.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:05.874924"], ["current_sign_in_at", "2016-03-11 02:04:05.874924"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:05.875916"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:04:05.974342"], ["updated_at", "2016-03-11 02:04:05.974342"]]  (9.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:05 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (20.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.5ms) Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 9.7ms | ActiveRecord: 1.6ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "q4Z1ehBcgkxsgxn6BMSC"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$nw1jK0AqREUdq9Ec91o0TONDM/PzmVGthbN.h.QhEVszGIjxFDqZ6"], ["confirmed_at", "2016-03-11 02:04:06.155891"], ["authentication_token", "q4Z1ehBcgkxsgxn6BMSC"], ["created_at", "2016-03-11 02:04:06.159378"], ["updated_at", "2016-03-11 02:04:06.159378"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:06.175832"], ["updated_at", "2016-03-11 02:04:06.175832"]]  (9.2ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:06.190187"], ["updated_at", "2016-03-11 02:04:06.190187"]]  (8.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 10.5ms | ActiveRecord: 1.6ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.0ms) Completed 200 OK in 26ms (Views: 8.8ms | ActiveRecord: 1.8ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.5ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 11.3ms | ActiveRecord: 2.0ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (7.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "aLyW1nPypuFWPEyxaQB4"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "fc65abf06e775fc2c96f628dc77091303315f3af5a07a04780257226e20cbc6d"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$1mTUOqCkX67v0tVxuQnN4e9hR9CFbUh5IT9PuWeFJGz9JQVXVVDbq"], ["authentication_token", "aLyW1nPypuFWPEyxaQB4"], ["created_at", "2016-03-11 02:04:06.652818"], ["updated_at", "2016-03-11 02:04:06.652818"], ["confirmation_token", "yPMcnzSqLm9aRXXnCQFv"], ["confirmation_sent_at", "2016-03-11 02:04:06.654738"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 7.1ms Sent mail to mtdevise@example.com (4.8ms) Date: Fri, 11 Mar 2016 02:04:06 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22796a2c36_daff330e0696de@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:06.670287"], ["updated_at", "2016-03-11 02:04:06.670287"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:06.686812"], ["updated_at", "2016-03-11 02:04:06.686812"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:04:06.697620"], ["updated_at", "2016-03-11 02:04:06.698150"], ["id", 1]]  (7.6ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:06.712853"], ["current_sign_in_at", "2016-03-11 02:04:06.712853"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:06.713705"], ["id", 1]]  (6.8ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 84ms (ActiveRecord: 37.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:06 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 13.5ms | ActiveRecord: 0.5ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (15.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Y4kTKbh_TXEC8bEyhH5z"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$.uhzeOAntUs2tQyhZ.4I9uOsWeW9XhAC6AmCJ3oceTsFHWWxSma/6"], ["confirmed_at", "2016-03-11 02:04:06.883648"], ["authentication_token", "Y4kTKbh_TXEC8bEyhH5z"], ["created_at", "2016-03-11 02:04:06.887024"], ["updated_at", "2016-03-11 02:04:06.887024"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:06.903522"], ["updated_at", "2016-03-11 02:04:06.903522"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:06.918628"], ["updated_at", "2016-03-11 02:04:06.918628"]]  (7.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QwSyUadwGsiyQxxpa9qs"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$RDnzFYdNwfYDMGi1txVnKO5cfIW5ulH9EsUH5NnA.T0AntBRLNjtG"], ["confirmed_at", "2016-03-11 02:04:06.931301"], ["authentication_token", "QwSyUadwGsiyQxxpa9qs"], ["created_at", "2016-03-11 02:04:06.934591"], ["updated_at", "2016-03-11 02:04:06.934591"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 2], ["created_at", "2016-03-11 02:04:06.951160"], ["updated_at", "2016-03-11 02:04:06.951160"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:04:06.965414"], ["updated_at", "2016-03-11 02:04:06.965414"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:04:06.988323"], ["updated_at", "2016-03-11 02:04:06.988323"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:04:07.001398"], ["updated_at", "2016-03-11 02:04:07.001398"]]  (7.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:07.057647"], ["current_sign_in_at", "2016-03-11 02:04:07.057647"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:07.058682"], ["id", 1]]  (9.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.4ms)  (18.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xFZqxPeHsjHVTv74UUjz"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$LC.8AaIbqZKBkAaLtq7ZCO5MYfv.2vcksSFPzwo69a3WN7PZfbGY."], ["confirmed_at", "2016-03-11 02:04:07.195244"], ["authentication_token", "xFZqxPeHsjHVTv74UUjz"], ["created_at", "2016-03-11 02:04:07.199356"], ["updated_at", "2016-03-11 02:04:07.199356"]]  (9.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:07.216323"], ["updated_at", "2016-03-11 02:04:07.216323"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:07.229769"], ["updated_at", "2016-03-11 02:04:07.229769"]]  (8.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.7ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9ynhpiy-eXF9zys7Lh7z"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$jBd7us5/WPpwueIZXOV1PenHET6aENM/WRTtFWStSVfIFFfSx5OsK"], ["confirmed_at", "2016-03-11 02:04:07.242099"], ["authentication_token", "9ynhpiy-eXF9zys7Lh7z"], ["created_at", "2016-03-11 02:04:07.245562"], ["updated_at", "2016-03-11 02:04:07.245562"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 02:04:07.262962"], ["updated_at", "2016-03-11 02:04:07.262962"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:04:07.278936"], ["updated_at", "2016-03-11 02:04:07.278936"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:04:07.291710"], ["updated_at", "2016-03-11 02:04:07.291710"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:04:07.303919"], ["updated_at", "2016-03-11 02:04:07.303919"]]  (8.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:07.347304"], ["current_sign_in_at", "2016-03-11 02:04:07.347304"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:07.348474"], ["id", 2]]  (8.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 9.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (8.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jEvcGFYbYDZ9kysL9FVQ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$ISzs8ElLHpIO6qqNra8fbuqVotSbIRN7RWIKrTf2BMWHYzFjmZt3."], ["confirmed_at", "2016-03-11 02:04:07.500868"], ["authentication_token", "jEvcGFYbYDZ9kysL9FVQ"], ["created_at", "2016-03-11 02:04:07.503913"], ["updated_at", "2016-03-11 02:04:07.503913"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:07.520831"], ["updated_at", "2016-03-11 02:04:07.520831"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:07.534606"], ["updated_at", "2016-03-11 02:04:07.534606"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NJFWTJjfR_FwQoLxMwcR"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$NN/6GBDcR0rwHP0cgtzynOV9XxmEoIBwlk.8JdcBnrjOwRRVWwXse"], ["confirmed_at", "2016-03-11 02:04:07.548776"], ["authentication_token", "NJFWTJjfR_FwQoLxMwcR"], ["created_at", "2016-03-11 02:04:07.551408"], ["updated_at", "2016-03-11 02:04:07.551408"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 02:04:07.566597"], ["updated_at", "2016-03-11 02:04:07.566597"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:04:07.580189"], ["updated_at", "2016-03-11 02:04:07.580189"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test10"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test17@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jYdqh9WeiXj8QezCmPvP"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$nu/886VVunrjM/Wvly6qc.ELZshUszUTbvx.7XsGf4qU6JllDh8Xu"], ["confirmed_at", "2016-03-11 02:04:07.723034"], ["authentication_token", "jYdqh9WeiXj8QezCmPvP"], ["created_at", "2016-03-11 02:04:07.726201"], ["updated_at", "2016-03-11 02:04:07.726201"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:07.743296"], ["updated_at", "2016-03-11 02:04:07.743296"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:07.757398"], ["updated_at", "2016-03-11 02:04:07.757398"]]  (7.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.3ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test12"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:07.804022"], ["current_sign_in_at", "2016-03-11 02:04:07.804022"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:07.805369"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://test12.example.com/ Completed 302 Found in 22ms (ActiveRecord: 11.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test12"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test12"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.5ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PU2zmNSe4QpGqCK13d8s"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$ozXoEJB1FxELHVaLlHv7mudO4rB3n/I7OPStB28DGiSyMmGYX66Xy"], ["confirmed_at", "2016-03-11 02:04:07.901170"], ["authentication_token", "PU2zmNSe4QpGqCK13d8s"], ["created_at", "2016-03-11 02:04:07.903837"], ["updated_at", "2016-03-11 02:04:07.903837"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:07.919111"], ["updated_at", "2016-03-11 02:04:07.919111"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:07.933636"], ["updated_at", "2016-03-11 02:04:07.933636"]]  (10.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:07 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "a1co3WmpUJv6LAKaN-vc"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$YP.GJvaNvGT4abQxAPXor.w2LID0aPVv.2tfNzL1hQrX3185vZ3A."], ["confirmed_at", "2016-03-11 02:04:08.069643"], ["authentication_token", "a1co3WmpUJv6LAKaN-vc"], ["created_at", "2016-03-11 02:04:08.073585"], ["updated_at", "2016-03-11 02:04:08.073585"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:08.087402"], ["updated_at", "2016-03-11 02:04:08.087402"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:08.101390"], ["updated_at", "2016-03-11 02:04:08.101390"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test20@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QeDsknM8SZAqyQDBtNWY"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$q3cVqInvSvL/rmqTSAPkDOkWxobxJL2PYExV2uUT7hzEFB3uc.OFq"], ["confirmed_at", "2016-03-11 02:04:08.274880"], ["authentication_token", "QeDsknM8SZAqyQDBtNWY"], ["created_at", "2016-03-11 02:04:08.278424"], ["updated_at", "2016-03-11 02:04:08.278424"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:08.293703"], ["updated_at", "2016-03-11 02:04:08.293703"]]  (7.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:08.305426"], ["updated_at", "2016-03-11 02:04:08.305426"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:08.343682"], ["current_sign_in_at", "2016-03-11 02:04:08.343682"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:08.344561"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_4f-V_nHDz8pzZD-CPkS"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$AuHqEM6S0.YjB4B3GsOaQurbvdi6PqKTjHP/4gdmBVmy/Hng6X0DO"], ["confirmed_at", "2016-03-11 02:04:08.449823"], ["authentication_token", "_4f-V_nHDz8pzZD-CPkS"], ["created_at", "2016-03-11 02:04:08.452778"], ["updated_at", "2016-03-11 02:04:08.452778"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:08.467579"], ["updated_at", "2016-03-11 02:04:08.467579"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:08.481396"], ["updated_at", "2016-03-11 02:04:08.481396"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "YWWpZRNaPd3wUxuZyQmE"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$kGy0f6FyTdXcEyC57JNi7.IUKlRxdbNeuqEn31XJvx0y1ursEj7NC"], ["confirmed_at", "2016-03-11 02:04:08.649638"], ["authentication_token", "YWWpZRNaPd3wUxuZyQmE"], ["created_at", "2016-03-11 02:04:08.652266"], ["updated_at", "2016-03-11 02:04:08.652266"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:08.689098"], ["current_sign_in_at", "2016-03-11 02:04:08.689098"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:08.690161"], ["id", 1]]  (9.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (10.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:04:08 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (1.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8_LxVyGsarw98Fyr4BFc"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$cHdVJyuQ5KJv75XngihYyumXIJmPxHIER6GQ5PRFQoHlxb5hx0CjK"], ["confirmed_at", "2016-03-11 02:04:09.038852"], ["authentication_token", "8_LxVyGsarw98Fyr4BFc"], ["created_at", "2016-03-11 02:04:09.043254"], ["updated_at", "2016-03-11 02:04:09.043254"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:04:09.059404"], ["updated_at", "2016-03-11 02:04:09.059404"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:04:09.073975"], ["updated_at", "2016-03-11 02:04:09.073975"]]  (7.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:04:09.109559"], ["current_sign_in_at", "2016-03-11 02:04:09.109559"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:04:09.110822"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)  (9.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:04:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:04:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (23.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "o-CHtXvgQsU_3o3dTJwS"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$a3jV0wOezj.7SIplv3XR7.F8yYXmiJuVefW90kUuu/zQDFOsyutvq"], ["confirmed_at", "2016-03-11 02:25:07.121969"], ["authentication_token", "o-CHtXvgQsU_3o3dTJwS"], ["created_at", "2016-03-11 02:25:07.230945"], ["updated_at", "2016-03-11 02:25:07.230945"]]  (14.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:07.283110"], ["updated_at", "2016-03-11 02:25:07.283110"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:07.396941"], ["updated_at", "2016-03-11 02:25:07.396941"]]  (15.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:07 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (297.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.4ms) Completed 200 OK in 804ms (Views: 774.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:08.278442"], ["current_sign_in_at", "2016-03-11 02:25:08.278442"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:08.280049"], ["id", 1]]  (14.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 66ms (ActiveRecord: 15.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (11.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 36ms (Views: 24.1ms | ActiveRecord: 0.8ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (9.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 8.4ms | ActiveRecord: 1.4ms)  (28.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8eVxAXq6J8Q68psoND9M"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$pkGlj8oMw7PmIPgQ6qNB9ulakvYiJypZ45Gz2nvUYE9wSzTRXzT66"], ["confirmed_at", "2016-03-11 02:25:08.611185"], ["authentication_token", "8eVxAXq6J8Q68psoND9M"], ["created_at", "2016-03-11 02:25:08.614342"], ["updated_at", "2016-03-11 02:25:08.614342"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:08.630598"], ["updated_at", "2016-03-11 02:25:08.630598"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:08.645576"], ["updated_at", "2016-03-11 02:25:08.645576"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:08.688081"], ["current_sign_in_at", "2016-03-11 02:25:08.688081"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:08.688914"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 6.5ms | ActiveRecord: 1.5ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yiXKkK-yDKkJnX5yM8Dj"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$OKqRB2gqPntKRqaHKHt0I.07y5XG4goLroE1Lmtice9GGD9/VIM3i"], ["confirmed_at", "2016-03-11 02:25:08.842885"], ["authentication_token", "yiXKkK-yDKkJnX5yM8Dj"], ["created_at", "2016-03-11 02:25:08.846840"], ["updated_at", "2016-03-11 02:25:08.846840"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (1.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:08.864324"], ["updated_at", "2016-03-11 02:25:08.864324"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:08.882372"], ["updated_at", "2016-03-11 02:25:08.882372"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:08.933839"], ["current_sign_in_at", "2016-03-11 02:25:08.933839"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:08.935392"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.7ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:08 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:25:09.013244"], ["updated_at", "2016-03-11 02:25:09.013244"]]  (11.9ms) commit transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:25:09.038517"], ["updated_at", "2016-03-11 02:25:09.038517"]]  (10.7ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.4ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:25:09.058579"], ["id", 2]]  (12.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 69ms (ActiveRecord: 39.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (12.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (17.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (14.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (16.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yjAVE3FmsB6yCyrnF9-p"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$uJul3/C7mmnBoukKCJrVy.6j8ButH6A1EJn1GTMwQLGbTnKHjefim"], ["confirmed_at", "2016-03-11 02:25:09.190985"], ["authentication_token", "yjAVE3FmsB6yCyrnF9-p"], ["created_at", "2016-03-11 02:25:09.194125"], ["updated_at", "2016-03-11 02:25:09.194125"]]  (10.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:09.213061"], ["updated_at", "2016-03-11 02:25:09.213061"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:09.232189"], ["updated_at", "2016-03-11 02:25:09.232189"]]  (15.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:09.277340"], ["current_sign_in_at", "2016-03-11 02:25:09.277340"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:09.278403"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:09 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test4"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (84.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (15.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (19.7ms) DELETE FROM "mtdevise_members";  (2.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "53HMyBPVQE_b8b4H7ZWG"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "18b8fae94e96e1d88e84da7d6a8f1a3bb1f1a487eed8e2be541934babe1290cc"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$yQZjPEKHsktZTyLT2ne56OSuf.xuieZeuYl1z/iTp1ivHTGNBUfm6"], ["authentication_token", "53HMyBPVQE_b8b4H7ZWG"], ["created_at", "2016-03-11 02:25:09.584218"], ["updated_at", "2016-03-11 02:25:09.584218"], ["confirmation_token", "3ahuP3fSmQYsz8BUsnwR"], ["confirmation_sent_at", "2016-03-11 02:25:09.852971"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 492.0ms Sent mail to user@example.com (29.9ms) Date: Fri, 11 Mar 2016 02:25:10 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22c86608ea_ddb9b10e04768@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:10.407207"], ["updated_at", "2016-03-11 02:25:10.407207"]]  (12.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:10.425863"], ["updated_at", "2016-03-11 02:25:10.425863"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:25:10.438406"], ["updated_at", "2016-03-11 02:25:10.439203"], ["id", 1]]  (12.1ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (12.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "J3bzCJqGTCfy5iS7p5oU"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$rV2ySb1LYEJD3e9SLTDRde4quWruA6w1YlKq3tvJqsckBmIWFMAw."], ["confirmed_at", "2016-03-11 02:25:10.572250"], ["authentication_token", "J3bzCJqGTCfy5iS7p5oU"], ["created_at", "2016-03-11 02:25:10.575682"], ["updated_at", "2016-03-11 02:25:10.575682"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:10.612731"], ["current_sign_in_at", "2016-03-11 02:25:10.612731"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:10.613766"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)  (10.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (21.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 26.6ms | ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (11.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:10 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "v_ssi1ZSez_Vmo3nUQes"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$ghnK.tGz.L4joQcus2xwJOze4hcj2n09W4Cv6Su167a2zEZERzysW"], ["confirmed_at", "2016-03-11 02:25:11.036858"], ["authentication_token", "v_ssi1ZSez_Vmo3nUQes"], ["created_at", "2016-03-11 02:25:11.041152"], ["updated_at", "2016-03-11 02:25:11.041152"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:11.058363"], ["updated_at", "2016-03-11 02:25:11.058363"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:11.070092"], ["updated_at", "2016-03-11 02:25:11.070092"]]  (8.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.3ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:11.110376"], ["current_sign_in_at", "2016-03-11 02:25:11.110376"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:11.111260"], ["id", 1]]  (9.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3rUCSasN_bQuz1kVR5Y_"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$jfLrsXk6CzsGYSsM4Yvgbed//JR37YT8ugonABDOhWuxc32LlnCH2"], ["confirmed_at", "2016-03-11 02:25:11.231550"], ["authentication_token", "3rUCSasN_bQuz1kVR5Y_"], ["created_at", "2016-03-11 02:25:11.234471"], ["updated_at", "2016-03-11 02:25:11.234471"]]  (14.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:11.254645"], ["updated_at", "2016-03-11 02:25:11.254645"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:11.273492"], ["updated_at", "2016-03-11 02:25:11.273492"]]  (13.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.5ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (15.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (14.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (16.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (15.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (15.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (17.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (18.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (16.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (21.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (18.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (18.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (19.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (18.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (18.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "tA618J8tUMK4p8FknC-x"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$2zT8I.qPNuRV6sxfkacCWuZMO3ZBkYi.r1D17i79yhhX1sX5Dzv9O"], ["confirmed_at", "2016-03-11 02:25:11.685689"], ["authentication_token", "tA618J8tUMK4p8FknC-x"], ["created_at", "2016-03-11 02:25:11.690114"], ["updated_at", "2016-03-11 02:25:11.690114"]]  (21.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:11.718650"], ["updated_at", "2016-03-11 02:25:11.718650"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:11.743176"], ["updated_at", "2016-03-11 02:25:11.743176"]]  (14.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ginob7xUp-3MT5iTfWLz"]] SQL (1.1ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$DR8x9mzsL4K0OBkOUhyBwuNAvRdqxyqlCueqjRTOnGH5xBx6mqhj."], ["confirmed_at", "2016-03-11 02:25:11.763240"], ["authentication_token", "ginob7xUp-3MT5iTfWLz"], ["created_at", "2016-03-11 02:25:11.767692"], ["updated_at", "2016-03-11 02:25:11.767692"]]  (17.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:11.793342"], ["updated_at", "2016-03-11 02:25:11.793342"]]  (16.1ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:11.815551"], ["updated_at", "2016-03-11 02:25:11.815551"]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:25:11.841815"], ["updated_at", "2016-03-11 02:25:11.841815"]]  (7.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:25:11.852287"], ["updated_at", "2016-03-11 02:25:11.852287"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:11.899080"], ["current_sign_in_at", "2016-03-11 02:25:11.899080"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:11.899993"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:25:11 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (2.4ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.4ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "p-C5s5g2E7qy8SacXrjm"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$ptgfc3q8Nhf5.Y9nODuuOeXrtc2Hy26bUoa/TnguxfJwMpaldGq6i"], ["confirmed_at", "2016-03-11 02:25:12.044680"], ["authentication_token", "p-C5s5g2E7qy8SacXrjm"], ["created_at", "2016-03-11 02:25:12.048979"], ["updated_at", "2016-03-11 02:25:12.048979"]]  (7.6ms) commit transaction  (0.5ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:12.065606"], ["updated_at", "2016-03-11 02:25:12.065606"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:12.083011"], ["updated_at", "2016-03-11 02:25:12.083011"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "CQdsM35yUXqQsF3LCHho"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$.PuLDqLI2.Yxshc.qB8F6OUPib9xh/QcBUK7alrFa2Fr1R3iBHCfy"], ["confirmed_at", "2016-03-11 02:25:12.097605"], ["authentication_token", "CQdsM35yUXqQsF3LCHho"], ["created_at", "2016-03-11 02:25:12.101176"], ["updated_at", "2016-03-11 02:25:12.101176"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:12.119459"], ["updated_at", "2016-03-11 02:25:12.119459"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:12.134001"], ["updated_at", "2016-03-11 02:25:12.134001"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:25:12.148576"], ["updated_at", "2016-03-11 02:25:12.148576"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:25:12.162998"], ["updated_at", "2016-03-11 02:25:12.162998"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:12.204854"], ["current_sign_in_at", "2016-03-11 02:25:12.204854"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:12.205838"], ["id", 2]]  (13.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 14.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.1ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "TG-B6o-yByKZTeaeHZ8v"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$40EbztB44rDcb8.yuVx3s.tXkVzPAIKQf4c.JP5t/dihX4tQbLy9G"], ["confirmed_at", "2016-03-11 02:25:12.387430"], ["authentication_token", "TG-B6o-yByKZTeaeHZ8v"], ["created_at", "2016-03-11 02:25:12.391739"], ["updated_at", "2016-03-11 02:25:12.391739"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:12.409413"], ["updated_at", "2016-03-11 02:25:12.409413"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:12.423283"], ["updated_at", "2016-03-11 02:25:12.423283"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:12.464154"], ["current_sign_in_at", "2016-03-11 02:25:12.464154"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:12.465006"], ["id", 1]]  (15.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 16.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)  (12.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "uZzfNCCKhqmBysVnsq6w"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$KUGaU6ASa84if1VvGRhgwuwYome99KrXGtyj2Z1g9EN13rIqkw.ce"], ["confirmed_at", "2016-03-11 02:25:12.718644"], ["authentication_token", "uZzfNCCKhqmBysVnsq6w"], ["created_at", "2016-03-11 02:25:12.722008"], ["updated_at", "2016-03-11 02:25:12.722008"]]  (13.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:12.741802"], ["updated_at", "2016-03-11 02:25:12.741802"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:12.755719"], ["updated_at", "2016-03-11 02:25:12.755719"]]  (15.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 8.1ms | ActiveRecord: 1.8ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:25:12.922942"], ["updated_at", "2016-03-11 02:25:12.922942"]]  (10.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:12 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 7.2ms | ActiveRecord: 1.7ms)  (13.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "XWjEe3_6jukRGHNr-Jq9"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "d6801a45b2c53417a0597c30b972f2c519ceca9b24d9c416598e613119375a94"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$ZPIBjDY/DQYDL5E2FHt4ZOyg03zgS/MBVuYjC6FWTl0HKklHYCCHu"], ["authentication_token", "XWjEe3_6jukRGHNr-Jq9"], ["created_at", "2016-03-11 02:25:13.116041"], ["updated_at", "2016-03-11 02:25:13.116041"], ["confirmation_token", "5Mkyxa5Ks6tZ9ssMUy4s"], ["confirmation_sent_at", "2016-03-11 02:25:13.117471"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 7.8ms Sent mail to mtdevise@example.com (4.0ms) Date: Fri, 11 Mar 2016 02:25:13 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22c89204b5_ddb9b10e04842@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:13.135144"], ["updated_at", "2016-03-11 02:25:13.135144"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:13.150494"], ["updated_at", "2016-03-11 02:25:13.150494"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:25:13.160324"], ["updated_at", "2016-03-11 02:25:13.160954"], ["id", 1]]  (9.8ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:13.176859"], ["current_sign_in_at", "2016-03-11 02:25:13.176859"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:13.177601"], ["id", 1]]  (8.1ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 85ms (ActiveRecord: 40.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 17ms (Views: 14.6ms | ActiveRecord: 0.4ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 9.6ms | ActiveRecord: 1.5ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 9.1ms | ActiveRecord: 1.8ms)  (15.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.5ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zxxi_ik-ddsmyzY4cGNy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$aJ8cBg1LCaSdx2n8rvR9V.9TPUkts5O5/QGeL1i4kOZvPa6O3JRga"], ["confirmed_at", "2016-03-11 02:25:13.523400"], ["authentication_token", "zxxi_ik-ddsmyzY4cGNy"], ["created_at", "2016-03-11 02:25:13.526242"], ["updated_at", "2016-03-11 02:25:13.526242"]]  (15.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:13.567482"], ["current_sign_in_at", "2016-03-11 02:25:13.567482"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:13.568434"], ["id", 1]]  (17.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 26ms (ActiveRecord: 17.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (12.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "YYwH4hhfsXwdwq_fHdhi"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$pTX0t8ONXwvzqYhr.CFXzezmVmJFgPU/Bc.95rr5iT.tKZAkjQut2"], ["confirmed_at", "2016-03-11 02:25:13.732241"], ["authentication_token", "YYwH4hhfsXwdwq_fHdhi"], ["created_at", "2016-03-11 02:25:13.736479"], ["updated_at", "2016-03-11 02:25:13.736479"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:13.757091"], ["updated_at", "2016-03-11 02:25:13.757091"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:13.771751"], ["updated_at", "2016-03-11 02:25:13.771751"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 1.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "awdMyKPeJB1aCaKzRoUW"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$U3bWdQhF15bhP2.p.GOBoO0sZhBIA.aVCNndYUTAK9bQSeRqEmULC"], ["confirmed_at", "2016-03-11 02:25:13.914989"], ["authentication_token", "awdMyKPeJB1aCaKzRoUW"], ["created_at", "2016-03-11 02:25:13.919243"], ["updated_at", "2016-03-11 02:25:13.919243"]]  (12.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:13.939570"], ["updated_at", "2016-03-11 02:25:13.939570"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:13.954712"], ["updated_at", "2016-03-11 02:25:13.954712"]]  (11.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:13 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test22@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (14.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "e9F3QGxgF9nr1cwr5f8z"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$EoOn3vkkahpzar9iQsa3J.9ZVsrI.S28lZG0IhvCuDn1UR2BcNcLO"], ["confirmed_at", "2016-03-11 02:25:14.114118"], ["authentication_token", "e9F3QGxgF9nr1cwr5f8z"], ["created_at", "2016-03-11 02:25:14.118043"], ["updated_at", "2016-03-11 02:25:14.118043"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:14.135553"], ["updated_at", "2016-03-11 02:25:14.135553"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:14.151208"], ["updated_at", "2016-03-11 02:25:14.151208"]]  (12.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test15"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:14.210687"], ["current_sign_in_at", "2016-03-11 02:25:14.210687"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:14.211952"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://test15.example.com/ Completed 302 Found in 26ms (ActiveRecord: 12.8ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.4ms)  (8.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "a6Zkk2he_AhoWLmSFKJa"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$r7jmQ0wdFv2WzOljS2YYIuP1DiaZHqJlaDskA1o.os/.edev8XJwe"], ["confirmed_at", "2016-03-11 02:25:14.320193"], ["authentication_token", "a6Zkk2he_AhoWLmSFKJa"], ["created_at", "2016-03-11 02:25:14.323368"], ["updated_at", "2016-03-11 02:25:14.323368"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:14.340128"], ["updated_at", "2016-03-11 02:25:14.340128"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:14.358309"], ["updated_at", "2016-03-11 02:25:14.358309"]]  (10.8ms) commit transaction  (1.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "TQyyqi7Ew2MSyoP_paUJ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$/j.BzMOZfxV9cK2cDEM1wuaFwXf8/KHw6ojgoA4ZtpUYGqFOESQ7q"], ["confirmed_at", "2016-03-11 02:25:14.375019"], ["authentication_token", "TQyyqi7Ew2MSyoP_paUJ"], ["created_at", "2016-03-11 02:25:14.380020"], ["updated_at", "2016-03-11 02:25:14.380020"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:14.399663"], ["updated_at", "2016-03-11 02:25:14.399663"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:14.418256"], ["updated_at", "2016-03-11 02:25:14.418256"]]  (9.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:14 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test16"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test25@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (12.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (17.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (23.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:42 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (10.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.1ms) Completed 200 OK in 526ms (Views: 504.2ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:42 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (14.4ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (5.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (312.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 398ms (Views: 334.1ms | ActiveRecord: 1.0ms)  (16.6ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Mtdevise::Account Load (0.9ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (30.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 116ms (Views: 42.5ms | ActiveRecord: 0.0ms)  (14.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "944Zz9T4w8Xdp5Fg4zyT"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$y1/fGfaDb7JiN8LaqlIm9uW9z0c8O7FLV.5ELpbJFKpduyIYYR2a2"], ["confirmed_at", "2016-03-11 02:25:43.843937"], ["authentication_token", "944Zz9T4w8Xdp5Fg4zyT"], ["created_at", "2016-03-11 02:25:43.901499"], ["updated_at", "2016-03-11 02:25:43.901499"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:43.947531"], ["current_sign_in_at", "2016-03-11 02:25:43.947531"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:43.948727"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 51ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:43 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (11.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 61ms (Views: 18.6ms | ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.3ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 9.6ms | ActiveRecord: 1.8ms)  (10.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2cPVBNDAX1jETdopXhio"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "928e3e65128d06a3d572f4bddf904986f34ec3cd37a7bab5959284bce1e4ee33"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$WizGzDm6Qz0Yd/PV1oKy6ObBIjhJB0IMRLlBhYB9vZllHeFXRMcei"], ["authentication_token", "2cPVBNDAX1jETdopXhio"], ["created_at", "2016-03-11 02:25:44.420983"], ["updated_at", "2016-03-11 02:25:44.420983"], ["confirmation_token", "rxaCEf6F3ghzQRjvyVpV"], ["confirmation_sent_at", "2016-03-11 02:25:44.650083"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.7ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 341.5ms Sent mail to mtdevise@example.com (67.1ms) Date: Fri, 11 Mar 2016 02:25:45 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22ca912e5a_de512e90e0334d3@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:45.099418"], ["updated_at", "2016-03-11 02:25:45.099418"]]  (20.0ms) commit transaction  (1.3ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:45.181467"], ["updated_at", "2016-03-11 02:25:45.181467"]]  (20.2ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:25:45.206670"], ["updated_at", "2016-03-11 02:25:45.208035"], ["id", 1]]  (22.6ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:45.263017"], ["current_sign_in_at", "2016-03-11 02:25:45.263017"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:45.264286"], ["id", 1]]  (8.6ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 866ms (ActiveRecord: 78.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (2.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 19ms (Views: 15.4ms | ActiveRecord: 0.6ms)  (17.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (17.2ms) DELETE FROM "mtdevise_accounts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (20.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.8ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QTzuiJPZe8Qi57PeUBsP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$.AOCn0/fDM1n31dU3Acxje/qa1UJxVz8N5d/kNoCZS4NNZR5MQfE6"], ["confirmed_at", "2016-03-11 02:25:45.429579"], ["authentication_token", "QTzuiJPZe8Qi57PeUBsP"], ["created_at", "2016-03-11 02:25:45.433867"], ["updated_at", "2016-03-11 02:25:45.433867"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:45.453306"], ["updated_at", "2016-03-11 02:25:45.453306"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:45.471386"], ["updated_at", "2016-03-11 02:25:45.471386"]]  (10.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 9.6ms | ActiveRecord: 1.7ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.2ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 9.5ms | ActiveRecord: 2.0ms)  (11.5ms) DELETE FROM "things";  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:25:45.769232"], ["updated_at", "2016-03-11 02:25:45.769232"]]  (12.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.5ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 28ms (Views: 9.7ms | ActiveRecord: 2.1ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "n7_wHkPfCX2j6dPKcpj8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$t7hnapoxMDlRhL9v4n20NOsMi7WHHwkMbo38HK5F0jOjkJ28fqnwi"], ["confirmed_at", "2016-03-11 02:25:45.916268"], ["authentication_token", "n7_wHkPfCX2j6dPKcpj8"], ["created_at", "2016-03-11 02:25:45.919393"], ["updated_at", "2016-03-11 02:25:45.919393"]]  (13.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:45.963057"], ["current_sign_in_at", "2016-03-11 02:25:45.963057"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:45.964266"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:25:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)  (13.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_ZGjDq9jeCxsn_uV7RhE"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$b5EAeCryik5YhVhT4QlFGer7jRwNGipCyZy2FqP4kMQ59o3iHmHla"], ["confirmed_at", "2016-03-11 02:25:46.124139"], ["authentication_token", "_ZGjDq9jeCxsn_uV7RhE"], ["created_at", "2016-03-11 02:25:46.127378"], ["updated_at", "2016-03-11 02:25:46.127378"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:46.143302"], ["updated_at", "2016-03-11 02:25:46.143302"]]  (20.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:46.168429"], ["updated_at", "2016-03-11 02:25:46.168429"]]  (13.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:46.209226"], ["current_sign_in_at", "2016-03-11 02:25:46.209226"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:46.210654"], ["id", 1]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (14.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZVgnCCTuDiSByPkxoiqZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$QVRIceV2xgw0/TmOjmAA9.ArBs57n8rOzQfFwoXYA7jXYYug6ITxS"], ["confirmed_at", "2016-03-11 02:25:46.450336"], ["authentication_token", "ZVgnCCTuDiSByPkxoiqZ"], ["created_at", "2016-03-11 02:25:46.453269"], ["updated_at", "2016-03-11 02:25:46.453269"]]  (15.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:46.475057"], ["updated_at", "2016-03-11 02:25:46.475057"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:46.490671"], ["updated_at", "2016-03-11 02:25:46.490671"]]  (10.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test3"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test4@example.com"]] Completed 401 Unauthorized in 6ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "M29M2sS8f6rkMkPikHB7"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$szHCawpSD3IZdQvoYJnyh.FvUKNTzyqt9RZdT95L89tZFUeh97jwC"], ["confirmed_at", "2016-03-11 02:25:46.633683"], ["authentication_token", "M29M2sS8f6rkMkPikHB7"], ["created_at", "2016-03-11 02:25:46.636857"], ["updated_at", "2016-03-11 02:25:46.636857"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:46.654178"], ["updated_at", "2016-03-11 02:25:46.654178"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:46.666735"], ["updated_at", "2016-03-11 02:25:46.666735"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Wjsy8BTzN4SsZeRykxar"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$mcUeBmnoQXm2cLcZqs0ACOTzb3rzFGI4IxUbgy/9saaaFbGBOJ17a"], ["confirmed_at", "2016-03-11 02:25:46.682734"], ["authentication_token", "Wjsy8BTzN4SsZeRykxar"], ["created_at", "2016-03-11 02:25:46.687192"], ["updated_at", "2016-03-11 02:25:46.687192"]]  (14.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:46.706937"], ["updated_at", "2016-03-11 02:25:46.706937"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:46.720814"], ["updated_at", "2016-03-11 02:25:46.720814"]]  (11.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test4"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test6@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (12.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3YR2diyUc-SZAdiq6ME6"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$4TyXmmqcLQIcithsKg4vsODj7UurvnsJA4TQ7CHUhYsTkL7ahlrIm"], ["confirmed_at", "2016-03-11 02:25:46.877164"], ["authentication_token", "3YR2diyUc-SZAdiq6ME6"], ["created_at", "2016-03-11 02:25:46.881156"], ["updated_at", "2016-03-11 02:25:46.881156"]]  (16.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:46.904063"], ["updated_at", "2016-03-11 02:25:46.904063"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:46.920885"], ["updated_at", "2016-03-11 02:25:46.920885"]]  (16.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test6"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:46.977944"], ["current_sign_in_at", "2016-03-11 02:25:46.977944"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:46.978789"], ["id", 1]]  (33.1ms) commit transaction Redirected to http://test6.example.com/ Completed 302 Found in 44ms (ActiveRecord: 34.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (18.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EmsDUZyDA7c4qZC2AHSy"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$OCsMjDDliYMNE3UvI8Gv3.Bn1LODtWyMzi/75oStdrnW6.I2JK8k2"], ["confirmed_at", "2016-03-11 02:25:47.127596"], ["authentication_token", "EmsDUZyDA7c4qZC2AHSy"], ["created_at", "2016-03-11 02:25:47.130990"], ["updated_at", "2016-03-11 02:25:47.130990"]]  (17.2ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.8ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:47.158881"], ["updated_at", "2016-03-11 02:25:47.158881"]]  (14.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:47.180222"], ["updated_at", "2016-03-11 02:25:47.180222"]]  (13.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test7"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (14.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.0ms) DELETE FROM "things";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DNcwwPP-icjz79chVU6s"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$WP7pn2K.c8HqfV1VC5YbBOx.LaiyG11kofOBBH.vqHQTJctrGxt/C"], ["confirmed_at", "2016-03-11 02:25:47.399094"], ["authentication_token", "DNcwwPP-icjz79chVU6s"], ["created_at", "2016-03-11 02:25:47.403401"], ["updated_at", "2016-03-11 02:25:47.403401"]]  (15.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:47.427780"], ["updated_at", "2016-03-11 02:25:47.427780"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:47.444987"], ["updated_at", "2016-03-11 02:25:47.444987"]]  (13.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RBbrzxJB9WYvYxc185jx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$QD.5Hi66ztJ/MhKEDKKlsu1F4RQHfJJpov.udmw0..JDHuLWHWnE."], ["confirmed_at", "2016-03-11 02:25:47.462509"], ["authentication_token", "RBbrzxJB9WYvYxc185jx"], ["created_at", "2016-03-11 02:25:47.465100"], ["updated_at", "2016-03-11 02:25:47.465100"]]  (13.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:47.484271"], ["updated_at", "2016-03-11 02:25:47.484271"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:47.501695"], ["updated_at", "2016-03-11 02:25:47.501695"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:25:47.522215"], ["updated_at", "2016-03-11 02:25:47.522215"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:25:47.537223"], ["updated_at", "2016-03-11 02:25:47.537223"]]  (15.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:47.579163"], ["current_sign_in_at", "2016-03-11 02:25:47.579163"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:47.580175"], ["id", 1]]  (12.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (2.7ms) Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.4ms)  (14.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.6ms) DELETE FROM sqlite_sequence where name = 'things';  (12.9ms) DELETE FROM "mtdevise_accounts";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3yKf5EVrssjM9WMFygqQ"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$IKHyBZwOA3J/Xgountegg.x8LOlYt8vteXandEDq0ZwZYgyYgwXlq"], ["confirmed_at", "2016-03-11 02:25:47.743727"], ["authentication_token", "3yKf5EVrssjM9WMFygqQ"], ["created_at", "2016-03-11 02:25:47.747199"], ["updated_at", "2016-03-11 02:25:47.747199"]]  (13.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:47.768523"], ["updated_at", "2016-03-11 02:25:47.768523"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:47.786154"], ["updated_at", "2016-03-11 02:25:47.786154"]]  (8.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "m7VzBeT_qfWpUYYiih2B"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$M2qb9wcdJJiSUIVPWCg3GOc92ItravAnQBRSQyrP9CejJoIG8HrB."], ["confirmed_at", "2016-03-11 02:25:47.798560"], ["authentication_token", "m7VzBeT_qfWpUYYiih2B"], ["created_at", "2016-03-11 02:25:47.801918"], ["updated_at", "2016-03-11 02:25:47.801918"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 02:25:47.818031"], ["updated_at", "2016-03-11 02:25:47.818031"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:25:47.835759"], ["updated_at", "2016-03-11 02:25:47.835759"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:25:47.851815"], ["updated_at", "2016-03-11 02:25:47.851815"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:25:47.867330"], ["updated_at", "2016-03-11 02:25:47.867330"]]  (10.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:47.904545"], ["current_sign_in_at", "2016-03-11 02:25:47.904545"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:47.905474"], ["id", 2]]  (12.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 13.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:25:47 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'things';  (12.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DjsXPkGSd2yv2EXGwHza"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "dd7c4746e8919c8cad8bdb879a869d720580838a81d5651a0b20b91b21395f96"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$pIiAoxfjcaifPSvluRnfMuvyCXzL1iX3KqPFUXrKuiR5OEbi3k7Zq"], ["authentication_token", "DjsXPkGSd2yv2EXGwHza"], ["created_at", "2016-03-11 02:25:48.093221"], ["updated_at", "2016-03-11 02:25:48.093221"], ["confirmation_token", "_nfx6Bij464YzgtRk93-"], ["confirmation_sent_at", "2016-03-11 02:25:48.094152"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.6ms Sent mail to user@example.com (2.8ms) Date: Fri, 11 Mar 2016 02:25:48 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22cac19228_de512e90e0335be@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:48.104823"], ["updated_at", "2016-03-11 02:25:48.104823"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:48.122175"], ["updated_at", "2016-03-11 02:25:48.122175"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:25:48.131854"], ["updated_at", "2016-03-11 02:25:48.132549"], ["id", 1]]  (13.0ms) commit transaction Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (15.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DTJF7ABpm9Jrq3i2fsFY"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$ere3xL.OBqkXvFUVx6Bb0uAD8HNI944CnYl.eCew/mtcUx8mHlQsy"], ["confirmed_at", "2016-03-11 02:25:48.288157"], ["authentication_token", "DTJF7ABpm9Jrq3i2fsFY"], ["created_at", "2016-03-11 02:25:48.291682"], ["updated_at", "2016-03-11 02:25:48.291682"]]  (12.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:48.310282"], ["updated_at", "2016-03-11 02:25:48.310282"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:48.324646"], ["updated_at", "2016-03-11 02:25:48.324646"]]  (12.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:48.365337"], ["current_sign_in_at", "2016-03-11 02:25:48.365337"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:48.366272"], ["id", 1]]  (11.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test12"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 6.5ms | ActiveRecord: 1.6ms)  (16.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "qfNYwppzxxuaCFs8-quZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$j8QQhhrMLgSSyQ.XVBtMK.BZOnrXGsZHsdwmQISPrhrUJbB9Nv5/C"], ["confirmed_at", "2016-03-11 02:25:48.530610"], ["authentication_token", "qfNYwppzxxuaCFs8-quZ"], ["created_at", "2016-03-11 02:25:48.533563"], ["updated_at", "2016-03-11 02:25:48.533563"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:48.552703"], ["updated_at", "2016-03-11 02:25:48.552703"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:48.570969"], ["updated_at", "2016-03-11 02:25:48.570969"]]  (10.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:48.607787"], ["current_sign_in_at", "2016-03-11 02:25:48.607787"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:48.609261"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.2ms | ActiveRecord: 1.6ms)  (13.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (1.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3uctSeUqzzGDcEDcErzi"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$Uu125jquIiN9tOxaHCWSuuV2jKlppUOiPCj0uU27R4x0sHQHqqXUm"], ["confirmed_at", "2016-03-11 02:25:48.766987"], ["authentication_token", "3uctSeUqzzGDcEDcErzi"], ["created_at", "2016-03-11 02:25:48.772081"], ["updated_at", "2016-03-11 02:25:48.772081"]]  (12.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:48.792371"], ["updated_at", "2016-03-11 02:25:48.792371"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:48.808773"], ["updated_at", "2016-03-11 02:25:48.808773"]]  (14.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:48.850826"], ["current_sign_in_at", "2016-03-11 02:25:48.850826"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:48.852014"], ["id", 1]]  (12.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 13.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:25:48.918991"], ["updated_at", "2016-03-11 02:25:48.918991"]]  (13.3ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:25:48.939964"], ["updated_at", "2016-03-11 02:25:48.939964"]]  (13.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:25:48.960300"], ["id", 2]]  (12.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 64ms (ActiveRecord: 42.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:48 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (13.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (17.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1EihjJTLfePSZs-S47of"]] SQL (1.0ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$W0ZQvQ6z/RyQAxDyHa5zaOxnrqpB9XWofej9dhnrSYSm1alOXkXvq"], ["confirmed_at", "2016-03-11 02:25:49.090638"], ["authentication_token", "1EihjJTLfePSZs-S47of"], ["created_at", "2016-03-11 02:25:49.094611"], ["updated_at", "2016-03-11 02:25:49.094611"]]  (13.8ms) commit transaction  (0.6ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:49.116592"], ["updated_at", "2016-03-11 02:25:49.116592"]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:49.137188"], ["updated_at", "2016-03-11 02:25:49.137188"]]  (8.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:49.179910"], ["current_sign_in_at", "2016-03-11 02:25:49.179910"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:49.181284"], ["id", 1]]  (12.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.7ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 8.4ms | ActiveRecord: 1.7ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.3ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (17.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (1.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Geexe3FxPMz7VmtJNZEH"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$HFJgFPQP6PQyNbR.w50NpuFzHwfaCPC5hrz0jdyi7lviDv4wnw1e6"], ["confirmed_at", "2016-03-11 02:25:49.544182"], ["authentication_token", "Geexe3FxPMz7VmtJNZEH"], ["created_at", "2016-03-11 02:25:49.549023"], ["updated_at", "2016-03-11 02:25:49.549023"]]  (14.9ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:49.571428"], ["updated_at", "2016-03-11 02:25:49.571428"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:49.586401"], ["updated_at", "2016-03-11 02:25:49.586401"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.3ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:25:49.632395"], ["current_sign_in_at", "2016-03-11 02:25:49.632395"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:25:49.634247"], ["id", 1]]  (12.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.5ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "dfDcB9zAePxSBr_M5UPc"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$eGFEIW0nneGyel3QlL5/4e3V0aZ2Qifjt9Z1ClyLA7Nmi1nloiNVa"], ["confirmed_at", "2016-03-11 02:25:49.757022"], ["authentication_token", "dfDcB9zAePxSBr_M5UPc"], ["created_at", "2016-03-11 02:25:49.761176"], ["updated_at", "2016-03-11 02:25:49.761176"]]  (16.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:25:49.786600"], ["updated_at", "2016-03-11 02:25:49.786600"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:25:49.802944"], ["updated_at", "2016-03-11 02:25:49.802944"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:25:49 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test25@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (15.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (15.4ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (4.6ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "E2yNwCURtqLSUX1y6kfz"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$ASNsGrkx.uFqZGM3tW1kreMMUtxMzGNcKlwJo2aIPXuNsxwviDF1G"], ["confirmed_at", "2016-03-11 02:29:28.875953"], ["authentication_token", "E2yNwCURtqLSUX1y6kfz"], ["created_at", "2016-03-11 02:29:28.992322"], ["updated_at", "2016-03-11 02:29:28.992322"]]  (11.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:29.033859"], ["updated_at", "2016-03-11 02:29:29.033859"]]  (20.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:29.168719"], ["updated_at", "2016-03-11 02:29:29.168719"]]  (15.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (378.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.0ms) Completed 200 OK in 1017ms (Views: 977.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:30.269755"], ["current_sign_in_at", "2016-03-11 02:29:30.269755"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:30.271024"], ["id", 1]]  (14.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 67ms (ActiveRecord: 15.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (14.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 46ms (Views: 28.3ms | ActiveRecord: 1.0ms)  (18.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (14.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WsXxkSSW8q5NX5ox4FLU"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$6pN0GKqEksK.VTyWIWqjdOUyMlcJ0zfZyEDy8UJQKhsoPtARHBwDK"], ["confirmed_at", "2016-03-11 02:29:30.621100"], ["authentication_token", "WsXxkSSW8q5NX5ox4FLU"], ["created_at", "2016-03-11 02:29:30.624275"], ["updated_at", "2016-03-11 02:29:30.624275"]]  (11.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:30.643039"], ["updated_at", "2016-03-11 02:29:30.643039"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:30.658693"], ["updated_at", "2016-03-11 02:29:30.658693"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GsBNWT6RvkW-vCk8jRef"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$KBKdllRiCRqKWbOXD2bTQ.Msg1e2YNXT8ckQgVVEmxhk8HW.WG7Mi"], ["confirmed_at", "2016-03-11 02:29:30.674279"], ["authentication_token", "GsBNWT6RvkW-vCk8jRef"], ["created_at", "2016-03-11 02:29:30.678633"], ["updated_at", "2016-03-11 02:29:30.678633"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 2], ["created_at", "2016-03-11 02:29:30.696318"], ["updated_at", "2016-03-11 02:29:30.696318"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:29:30.711984"], ["updated_at", "2016-03-11 02:29:30.711984"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:29:30.731695"], ["updated_at", "2016-03-11 02:29:30.731695"]]  (36.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:29:30.772136"], ["updated_at", "2016-03-11 02:29:30.772136"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:30.818496"], ["current_sign_in_at", "2016-03-11 02:29:30.818496"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:30.820917"], ["id", 2]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 12.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (5.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (4.0ms) Completed 200 OK in 17ms (Views: 13.3ms | ActiveRecord: 0.6ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:29:30 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.4ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eEN43kk3RqXMt4sCyVPb"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$j7woPMwWsvSdmTnKUa/gHeJpIlR.P5EkIvO1N5c82SAFNkHUi2Jte"], ["confirmed_at", "2016-03-11 02:29:30.987239"], ["authentication_token", "eEN43kk3RqXMt4sCyVPb"], ["created_at", "2016-03-11 02:29:30.992086"], ["updated_at", "2016-03-11 02:29:30.992086"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:31.010974"], ["updated_at", "2016-03-11 02:29:31.010974"]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:31.032371"], ["updated_at", "2016-03-11 02:29:31.032371"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "STtk9RAreGuxRNzCvTEa"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$VNL5YNEkHXp9jmeXXAzUjum0VGf0to1cp3em3jEekU.QVAy75dgyy"], ["confirmed_at", "2016-03-11 02:29:31.048099"], ["authentication_token", "STtk9RAreGuxRNzCvTEa"], ["created_at", "2016-03-11 02:29:31.052235"], ["updated_at", "2016-03-11 02:29:31.052235"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-11 02:29:31.073635"], ["updated_at", "2016-03-11 02:29:31.073635"]]  (10.6ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:29:31.090224"], ["updated_at", "2016-03-11 02:29:31.090224"]]  (10.4ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:29:31.105312"], ["updated_at", "2016-03-11 02:29:31.105312"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:29:31.117330"], ["updated_at", "2016-03-11 02:29:31.117330"]]  (20.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test6@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:31.171508"], ["current_sign_in_at", "2016-03-11 02:29:31.171508"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:31.172595"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.7ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "x5-hxa-eVpQ4c85Fk_2X"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$0DZ1QuBmIL6Alz3r5qGt9OnzHRF.PaJ.YNm7rRTC2SSpn58TcIUV6"], ["confirmed_at", "2016-03-11 02:29:31.340502"], ["authentication_token", "x5-hxa-eVpQ4c85Fk_2X"], ["created_at", "2016-03-11 02:29:31.343803"], ["updated_at", "2016-03-11 02:29:31.343803"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:31.360173"], ["updated_at", "2016-03-11 02:29:31.360173"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:31.374365"], ["updated_at", "2016-03-11 02:29:31.374365"]]  (7.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.3ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test6"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:31.436702"], ["current_sign_in_at", "2016-03-11 02:29:31.436702"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:31.437651"], ["id", 1]]  (15.2ms) commit transaction Redirected to http://test6.example.com/ Completed 302 Found in 27ms (ActiveRecord: 16.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.3ms)  (14.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "w4ZmdGLNstU7z8ZEVZyi"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$fgmJh35LogE7AzC5brmvxuFrVZCADjQ0YDY8Rs7S9aWj/iWa45rsC"], ["confirmed_at", "2016-03-11 02:29:31.663555"], ["authentication_token", "w4ZmdGLNstU7z8ZEVZyi"], ["created_at", "2016-03-11 02:29:31.669006"], ["updated_at", "2016-03-11 02:29:31.669006"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:31.689089"], ["updated_at", "2016-03-11 02:29:31.689089"]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:31.711314"], ["updated_at", "2016-03-11 02:29:31.711314"]]  (10.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test7"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test10@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (16.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ha5yrG48xD4cALes2SAt"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$bd3sUeC0PE3YE.9y.2L11ujn/6x0y.ODtw4wufVpAz9V9UuP4cwoa"], ["confirmed_at", "2016-03-11 02:29:31.862892"], ["authentication_token", "Ha5yrG48xD4cALes2SAt"], ["created_at", "2016-03-11 02:29:31.867600"], ["updated_at", "2016-03-11 02:29:31.867600"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:31.889003"], ["updated_at", "2016-03-11 02:29:31.889003"]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:31.904325"], ["updated_at", "2016-03-11 02:29:31.904325"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NhmsAD9UH7oruzpgotHx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$FCJYdo0jIayZRSuWhZeuLecwW03mGC65.PzlFJUFAwCPShYyoygq2"], ["confirmed_at", "2016-03-11 02:29:31.920477"], ["authentication_token", "NhmsAD9UH7oruzpgotHx"], ["created_at", "2016-03-11 02:29:31.924294"], ["updated_at", "2016-03-11 02:29:31.924294"]]  (11.8ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 02:29:31.942000"], ["updated_at", "2016-03-11 02:29:31.942000"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:29:31.954666"], ["updated_at", "2016-03-11 02:29:31.954666"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:31 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test8"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test12@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6Ki8gKxgEAquZSvZR5hd"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$hIqyuO16/xIY.1GLXvkQ4uDLqx6Igi72LZ/RkmWQVXVErTOn2fSGO"], ["confirmed_at", "2016-03-11 02:29:32.093919"], ["authentication_token", "6Ki8gKxgEAquZSvZR5hd"], ["created_at", "2016-03-11 02:29:32.098454"], ["updated_at", "2016-03-11 02:29:32.098454"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:32.115792"], ["updated_at", "2016-03-11 02:29:32.115792"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:32.130161"], ["updated_at", "2016-03-11 02:29:32.130161"]]  (10.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test10"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (16.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Tk5UzC--asiPG2UNzacU"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "7c21b0be690c410f81f5a0c4768a972af1709892d60848b7db35a8573a4fc816"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$D7zRhbrP/YW6ULDx5DrI.eOgcVWW5WVTwevM4R0h/2mR.aXOkoCI."], ["authentication_token", "Tk5UzC--asiPG2UNzacU"], ["created_at", "2016-03-11 02:29:32.408614"], ["updated_at", "2016-03-11 02:29:32.408614"], ["confirmation_token", "qdu7yksdMi39AeXQp5sf"], ["confirmation_sent_at", "2016-03-11 02:29:32.689395"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (9.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 598.5ms Sent mail to mtdevise@example.com (39.7ms) Date: Fri, 11 Mar 2016 02:29:33 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22d8d57d08_e079e70dc16097@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:33.375130"], ["updated_at", "2016-03-11 02:29:33.375130"]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (6.0ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:33.397180"], ["updated_at", "2016-03-11 02:29:33.397180"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:29:33.418087"], ["updated_at", "2016-03-11 02:29:33.418761"], ["id", 1]]  (9.7ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:33.438308"], ["current_sign_in_at", "2016-03-11 02:29:33.438308"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:33.439092"], ["id", 1]]  (9.3ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 1056ms (ActiveRecord: 55.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.6ms)  (10.2ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (7.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.4ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.5ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 12.6ms | ActiveRecord: 2.2ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "2aEFMcCzsTcYAy_T7vxe"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$6dKLDUhQ0.zvfztE4VJoTOSZcE/k7cW5Wa21lplO6/KzK0a6q9BnK"], ["confirmed_at", "2016-03-11 02:29:33.687963"], ["authentication_token", "2aEFMcCzsTcYAy_T7vxe"], ["created_at", "2016-03-11 02:29:33.691113"], ["updated_at", "2016-03-11 02:29:33.691113"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (1.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:33.706602"], ["updated_at", "2016-03-11 02:29:33.706602"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:33.721148"], ["updated_at", "2016-03-11 02:29:33.721148"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 38ms (Views: 8.5ms | ActiveRecord: 1.9ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:33 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 10.3ms | ActiveRecord: 1.8ms)  (8.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:29:33.999714"], ["updated_at", "2016-03-11 02:29:33.999714"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 10.8ms | ActiveRecord: 2.3ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "aN_RP-3NEytyrgLSvg4v"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$.zxlAPEGiOCqgi8LDGjve.jvysyzbVafQvFMpKidMeG/YSnQW7FPK"], ["confirmed_at", "2016-03-11 02:29:34.139106"], ["authentication_token", "aN_RP-3NEytyrgLSvg4v"], ["created_at", "2016-03-11 02:29:34.142673"], ["updated_at", "2016-03-11 02:29:34.142673"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:34.178158"], ["current_sign_in_at", "2016-03-11 02:29:34.178158"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:34.179081"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.8ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xLgKvMR8doCtnnL1zjxx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$repRhtRfovFSvRUOKy7j8ODihRfNaV5BOkeB9JsGDzftdT0SHqEla"], ["confirmed_at", "2016-03-11 02:29:34.395851"], ["authentication_token", "xLgKvMR8doCtnnL1zjxx"], ["created_at", "2016-03-11 02:29:34.399740"], ["updated_at", "2016-03-11 02:29:34.399740"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:34.444401"], ["current_sign_in_at", "2016-03-11 02:29:34.444401"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:34.445771"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (11.6ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (12.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "qk2se5HeLpY3uKFEFgvm"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "f3bb0b9b8b0a78b82970dc23278b051a0e1b8090c4506eb158193bc1643870d0"]] SQL (1.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$uUy/A8TWLMEJJ9eQg5kZ8uPJihmvtZTTNoIvQ/s7rD7.gb7vfP.9G"], ["authentication_token", "qk2se5HeLpY3uKFEFgvm"], ["created_at", "2016-03-11 02:29:34.813670"], ["updated_at", "2016-03-11 02:29:34.813670"], ["confirmation_token", "FUizkciSX2QxU751Fcx3"], ["confirmation_sent_at", "2016-03-11 02:29:34.814645"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.8ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 6.0ms Sent mail to user@example.com (4.2ms) Date: Fri, 11 Mar 2016 02:29:34 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22d8ec996f_e079e70dc16139@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:34.828825"], ["updated_at", "2016-03-11 02:29:34.828825"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:34.846649"], ["updated_at", "2016-03-11 02:29:34.846649"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:29:34.859718"], ["updated_at", "2016-03-11 02:29:34.860500"], ["id", 1]]  (12.5ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-DNsk5dTttWfTuiepDqN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$.eqo6wxnSEeiOjdNlukO6euOflWFzw9nmOu.WnxsL/Ql83BpIBisy"], ["confirmed_at", "2016-03-11 02:29:34.994278"], ["authentication_token", "-DNsk5dTttWfTuiepDqN"], ["created_at", "2016-03-11 02:29:34.997825"], ["updated_at", "2016-03-11 02:29:34.997825"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:35.014584"], ["updated_at", "2016-03-11 02:29:35.014584"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:35.029105"], ["updated_at", "2016-03-11 02:29:35.029105"]]  (12.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:35.068860"], ["current_sign_in_at", "2016-03-11 02:29:35.068860"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:35.069812"], ["id", 1]]  (14.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 15.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 6.4ms | ActiveRecord: 1.7ms)  (11.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (13.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.8ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hZP_bexRJ7VFexGYzNYr"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$/h.P.zULZRFcwfswkFK0cu5FptENY5T.cX6vkwU.rPiSuwa432vLa"], ["confirmed_at", "2016-03-11 02:29:35.239819"], ["authentication_token", "hZP_bexRJ7VFexGYzNYr"], ["created_at", "2016-03-11 02:29:35.244580"], ["updated_at", "2016-03-11 02:29:35.244580"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:35.264418"], ["updated_at", "2016-03-11 02:29:35.264418"]]  (12.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:35.283390"], ["updated_at", "2016-03-11 02:29:35.283390"]]  (10.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:35.333325"], ["current_sign_in_at", "2016-03-11 02:29:35.333325"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:35.334706"], ["id", 1]]  (12.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.6ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:29:35.408075"], ["updated_at", "2016-03-11 02:29:35.408075"]]  (12.0ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:29:35.430093"], ["updated_at", "2016-03-11 02:29:35.430093"]]  (10.8ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.4ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:29:35.447821"], ["id", 2]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 60ms (ActiveRecord: 36.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "eHs9pzhd9JQn4JM73uaH"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$bBGohmwXBUR17VaTDdMEeudHU8xgpwW/bU6SjgFeGIdHyQ5EyOql."], ["confirmed_at", "2016-03-11 02:29:35.550663"], ["authentication_token", "eHs9pzhd9JQn4JM73uaH"], ["created_at", "2016-03-11 02:29:35.553578"], ["updated_at", "2016-03-11 02:29:35.553578"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:35.572084"], ["updated_at", "2016-03-11 02:29:35.572084"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:35.589522"], ["updated_at", "2016-03-11 02:29:35.589522"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:35.627037"], ["current_sign_in_at", "2016-03-11 02:29:35.627037"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:35.628001"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test14"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 5.2ms | ActiveRecord: 1.4ms)  (13.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "HnxkEA4Gxs8Cy8x3cXVV"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$5xM26mRc4lyi3hkfpW7wlepn3lDR5.5C8w4vVfDZdmlt/K/iw2iF2"], ["confirmed_at", "2016-03-11 02:29:35.784487"], ["authentication_token", "HnxkEA4Gxs8Cy8x3cXVV"], ["created_at", "2016-03-11 02:29:35.788710"], ["updated_at", "2016-03-11 02:29:35.788710"]]  (7.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:35.804417"], ["updated_at", "2016-03-11 02:29:35.804417"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:35.819127"], ["updated_at", "2016-03-11 02:29:35.819127"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:35.869617"], ["current_sign_in_at", "2016-03-11 02:29:35.869617"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:35.871374"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 25ms (ActiveRecord: 12.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:29:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 8.0ms | ActiveRecord: 1.9ms)  (11.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MzRXhXysgLH4bNJjZw93"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$6vW7yDH1c2LsCR8OxROes.kDZZJbanVRrBgELhd6uRZVkqUrxr0U."], ["confirmed_at", "2016-03-11 02:29:36.095697"], ["authentication_token", "MzRXhXysgLH4bNJjZw93"], ["created_at", "2016-03-11 02:29:36.100067"], ["updated_at", "2016-03-11 02:29:36.100067"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:36.117797"], ["updated_at", "2016-03-11 02:29:36.117797"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:36.132071"], ["updated_at", "2016-03-11 02:29:36.132071"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:36 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:29:36.166566"], ["current_sign_in_at", "2016-03-11 02:29:36.166566"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:29:36.167561"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:29:36 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7DzRhCQEwrY5ccmEznVK"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$U9iEoqyVXceddfANQFXVdeJ/MryMxcFQXjAwWDC82vFHYnjKNoH5y"], ["confirmed_at", "2016-03-11 02:29:36.261698"], ["authentication_token", "7DzRhCQEwrY5ccmEznVK"], ["created_at", "2016-03-11 02:29:36.264587"], ["updated_at", "2016-03-11 02:29:36.264587"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:29:36.279000"], ["updated_at", "2016-03-11 02:29:36.279000"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:29:36.292176"], ["updated_at", "2016-03-11 02:29:36.292176"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:29:36 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test25@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (14.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:32:09.420200"], ["updated_at", "2016-03-11 02:32:09.420200"]]  (12.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:09 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (11.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.1ms) Completed 200 OK in 16450ms (Views: 16413.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:25 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (13.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (239.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 344ms (Views: 253.3ms | ActiveRecord: 0.6ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 128ms (Views: 38.4ms | ActiveRecord: 1.7ms)  (19.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 6.7ms | ActiveRecord: 1.4ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "uHyoJrLrZXv6Ymb8e2jJ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$vGNo5kMvWhkokDp83NDnfOMhdOlQ2iy7.cvInqff8IP1FpQPAc1yq"], ["confirmed_at", "2016-03-11 02:32:26.667326"], ["authentication_token", "uHyoJrLrZXv6Ymb8e2jJ"], ["created_at", "2016-03-11 02:32:26.687119"], ["updated_at", "2016-03-11 02:32:26.687119"]]  (17.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:26.711189"], ["updated_at", "2016-03-11 02:32:26.711189"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:26.791270"], ["updated_at", "2016-03-11 02:32:26.791270"]]  (12.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 7.7ms | ActiveRecord: 1.7ms)  (12.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:26 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 7.2ms | ActiveRecord: 1.3ms)  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:27 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:27 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:27 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yzyCMuH9x3KtsuDsqRz6"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "76e5895cb4a88027b0e12a1c14adc3bca59c651bd919a79b3235558c13f61474"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$puB9p0wDRrCqvhohDA2c1.wsd42Rd.rl5QUJKwB0Uu4TgxxAH4RFS"], ["authentication_token", "yzyCMuH9x3KtsuDsqRz6"], ["created_at", "2016-03-11 02:32:27.084039"], ["updated_at", "2016-03-11 02:32:27.084039"], ["confirmation_token", "B4zVACXFDks_3fNWWUVR"], ["confirmation_sent_at", "2016-03-11 02:32:27.306912"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 408.7ms Sent mail to mtdevise@example.com (51.8ms) Date: Fri, 11 Mar 2016 02:32:27 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22e3bbf364_4d54553307652e@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:27.804283"], ["updated_at", "2016-03-11 02:32:27.804283"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:27.827763"], ["updated_at", "2016-03-11 02:32:27.827763"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:32:27.842920"], ["updated_at", "2016-03-11 02:32:27.843978"], ["id", 1]]  (11.1ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:27.865853"], ["current_sign_in_at", "2016-03-11 02:32:27.865853"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:27.866660"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 807ms (ActiveRecord: 54.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:27 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 0.7ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9xwGKmXfTgiGyDTL5pWn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$1SG6DrDmIhioeheGzjDXi.gfJ8hwCjJSh1F6NVwPcP49pns2C0io."], ["confirmed_at", "2016-03-11 02:32:27.991143"], ["authentication_token", "9xwGKmXfTgiGyDTL5pWn"], ["created_at", "2016-03-11 02:32:27.995269"], ["updated_at", "2016-03-11 02:32:27.995269"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (38.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 55ms (Views: 50.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:28.086265"], ["current_sign_in_at", "2016-03-11 02:32:28.086265"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:28.087631"], ["id", 1]]  (11.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 48ms (ActiveRecord: 12.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (11.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 19.1ms | ActiveRecord: 0.7ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.4ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "g3UfsAXHo2mieKfvG9yN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$Pt/CxsW0NgcEH7a/4czT5uMKYx0PgmPCK3coe6FGGQoORYAEueB4G"], ["confirmed_at", "2016-03-11 02:32:28.300503"], ["authentication_token", "g3UfsAXHo2mieKfvG9yN"], ["created_at", "2016-03-11 02:32:28.303843"], ["updated_at", "2016-03-11 02:32:28.303843"]]  (9.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:28.320124"], ["updated_at", "2016-03-11 02:32:28.320124"]]  (8.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:28.333706"], ["updated_at", "2016-03-11 02:32:28.333706"]]  (7.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test2"]] Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test2@example.com"]] Completed 401 Unauthorized in 8ms (ActiveRecord: 1.1ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test2"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Tm71_gPG-R2mazAHavkp"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$VmILsSA7bxtoMHHFdjgpjO5vKDvNgeltZYy629LSC07bm4YvHeMEi"], ["confirmed_at", "2016-03-11 02:32:28.479777"], ["authentication_token", "Tm71_gPG-R2mazAHavkp"], ["created_at", "2016-03-11 02:32:28.483461"], ["updated_at", "2016-03-11 02:32:28.483461"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:28.502278"], ["updated_at", "2016-03-11 02:32:28.502278"]]  (7.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:28.514251"], ["updated_at", "2016-03-11 02:32:28.514251"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test3"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:28.565825"], ["current_sign_in_at", "2016-03-11 02:32:28.565825"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:28.566994"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://test3.example.com/ Completed 302 Found in 23ms (ActiveRecord: 11.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test3"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "VyKR8YgS-tWpopZsY35y"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$q8.XhcDw579CicYCV1ay1OxwkBot3CcJg1TdCGQLxuVnaWxXo/ZlS"], ["confirmed_at", "2016-03-11 02:32:28.658426"], ["authentication_token", "VyKR8YgS-tWpopZsY35y"], ["created_at", "2016-03-11 02:32:28.661855"], ["updated_at", "2016-03-11 02:32:28.661855"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:28.674784"], ["updated_at", "2016-03-11 02:32:28.674784"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:28.686959"], ["updated_at", "2016-03-11 02:32:28.686959"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test4"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test4"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5bZM8cKUyn9yZktRLgU6"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$o9/plYex2rZBF67pwwhBq.UxZex91h385AiXWdFZBCAWneHjFN1TC"], ["confirmed_at", "2016-03-11 02:32:28.814938"], ["authentication_token", "5bZM8cKUyn9yZktRLgU6"], ["created_at", "2016-03-11 02:32:28.818514"], ["updated_at", "2016-03-11 02:32:28.818514"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:28.834568"], ["updated_at", "2016-03-11 02:32:28.834568"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:28.848485"], ["updated_at", "2016-03-11 02:32:28.848485"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QVXJ_qtzF6rp2wEM1Hor"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$elLhyRfHoTJ.2/5DPuZhOuKpol8PaLZ143v.0A1kaMEziVyl.HBX2"], ["confirmed_at", "2016-03-11 02:32:28.862195"], ["authentication_token", "QVXJ_qtzF6rp2wEM1Hor"], ["created_at", "2016-03-11 02:32:28.865089"], ["updated_at", "2016-03-11 02:32:28.865089"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-11 02:32:28.882009"], ["updated_at", "2016-03-11 02:32:28.882009"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:32:28.893835"], ["updated_at", "2016-03-11 02:32:28.893835"]]  (7.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:28 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test5"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test6@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test6@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.2ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "HX3tgwXF8_aZa_ZGYda-"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$uS0uP/D/F3tmP5z48Ysriu/lRbNP5443e21j81CmiZ0aJkLIkHI52"], ["confirmed_at", "2016-03-11 02:32:29.257744"], ["authentication_token", "HX3tgwXF8_aZa_ZGYda-"], ["created_at", "2016-03-11 02:32:29.261034"], ["updated_at", "2016-03-11 02:32:29.261034"]]  (8.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:29.296257"], ["current_sign_in_at", "2016-03-11 02:32:29.296257"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:29.297672"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.4ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vseWBnasfZpAKcUbs45P"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$aICmHVM9H5TPm1h/WqyVT.cblfNTmQNaBoqThjo1hEuyPChoMnOPa"], ["confirmed_at", "2016-03-11 02:32:29.430757"], ["authentication_token", "vseWBnasfZpAKcUbs45P"], ["created_at", "2016-03-11 02:32:29.433617"], ["updated_at", "2016-03-11 02:32:29.433617"]]  (7.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:29.446506"], ["updated_at", "2016-03-11 02:32:29.446506"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:29.457758"], ["updated_at", "2016-03-11 02:32:29.457758"]]  (7.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:29.491750"], ["current_sign_in_at", "2016-03-11 02:32:29.491750"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:29.492807"], ["id", 1]]  (12.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.5ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "u-_LHCkWskkmfWgkPxq2"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$n73LfoCavQlOvNBC4Dr51eC.PXDbSzaKhoseu1fjiPDYFfMGJ.xyS"], ["confirmed_at", "2016-03-11 02:32:29.601128"], ["authentication_token", "u-_LHCkWskkmfWgkPxq2"], ["created_at", "2016-03-11 02:32:29.606066"], ["updated_at", "2016-03-11 02:32:29.606066"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:29.622098"], ["updated_at", "2016-03-11 02:32:29.622098"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:29.634347"], ["updated_at", "2016-03-11 02:32:29.634347"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.2ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "TTLy6X9i_MgzY-Q1eS1x"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$VKCu32bdfZh/bVayLjL6ye3PJR8hkKVqZxoVkt/dTIPCZalI27Kg6"], ["confirmed_at", "2016-03-11 02:32:29.871142"], ["authentication_token", "TTLy6X9i_MgzY-Q1eS1x"], ["created_at", "2016-03-11 02:32:29.874424"], ["updated_at", "2016-03-11 02:32:29.874424"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:29.890060"], ["updated_at", "2016-03-11 02:32:29.890060"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:29.904832"], ["updated_at", "2016-03-11 02:32:29.904832"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6gocWxqdkA6yUmJ8M6cW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$tnNSRRMFOHNRj6bEfUtHketAyIun9T3cuYVptvpKlEae4KNXpmPle"], ["confirmed_at", "2016-03-11 02:32:29.918113"], ["authentication_token", "6gocWxqdkA6yUmJ8M6cW"], ["created_at", "2016-03-11 02:32:29.920787"], ["updated_at", "2016-03-11 02:32:29.920787"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 2], ["created_at", "2016-03-11 02:32:29.935455"], ["updated_at", "2016-03-11 02:32:29.935455"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:32:29.949014"], ["updated_at", "2016-03-11 02:32:29.949014"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:32:29.966310"], ["updated_at", "2016-03-11 02:32:29.966310"]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:32:29.976210"], ["updated_at", "2016-03-11 02:32:29.976210"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:29 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:30.009563"], ["current_sign_in_at", "2016-03-11 02:32:30.009563"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:30.010454"], ["id", 2]]  (10.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.3ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "p1CZiDBBgsbcY6BH9MyT"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$7eTLt22EF.FUCj/D4.XsYeFP7lv7PtwjDOFNW7BPSfchQ7d0j6qRi"], ["confirmed_at", "2016-03-11 02:32:30.134817"], ["authentication_token", "p1CZiDBBgsbcY6BH9MyT"], ["created_at", "2016-03-11 02:32:30.137796"], ["updated_at", "2016-03-11 02:32:30.137796"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:30.150721"], ["updated_at", "2016-03-11 02:32:30.150721"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:30.164094"], ["updated_at", "2016-03-11 02:32:30.164094"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hNK8uJ3iZyx5jXGnhiQA"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$vWjSXXIVs3Jp5BwMQCh5se4BgiiQf/dg5.dICrgXGelJADqLr3lUO"], ["confirmed_at", "2016-03-11 02:32:30.178318"], ["authentication_token", "hNK8uJ3iZyx5jXGnhiQA"], ["created_at", "2016-03-11 02:32:30.181025"], ["updated_at", "2016-03-11 02:32:30.181025"]]  (11.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 2], ["created_at", "2016-03-11 02:32:30.197803"], ["updated_at", "2016-03-11 02:32:30.197803"]]  (8.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:32:30.210012"], ["updated_at", "2016-03-11 02:32:30.210012"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:32:30.222695"], ["updated_at", "2016-03-11 02:32:30.222695"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:32:30.234804"], ["updated_at", "2016-03-11 02:32:30.234804"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:30.270886"], ["current_sign_in_at", "2016-03-11 02:32:30.270886"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:30.272076"], ["id", 1]]  (11.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "e9oQphi5cbGjC-P7frFb"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$9ke0FYvorioGNOOsmLwIieqwlYExKuqBPKmA8G/imIWp43EY4I27K"], ["confirmed_at", "2016-03-11 02:32:30.413958"], ["authentication_token", "e9oQphi5cbGjC-P7frFb"], ["created_at", "2016-03-11 02:32:30.417534"], ["updated_at", "2016-03-11 02:32:30.417534"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:30.430535"], ["updated_at", "2016-03-11 02:32:30.430535"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:30.441597"], ["updated_at", "2016-03-11 02:32:30.441597"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:30.475246"], ["current_sign_in_at", "2016-03-11 02:32:30.475246"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:30.476282"], ["id", 1]]  (11.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test13"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 5.6ms | ActiveRecord: 1.6ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PZauaj5uW_4uP5tWVYkb"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$HuxtYhpVUlNn.B6/PyImiOxFHX89OL7yD/2bZgrvEH7d.auzJUEFK"], ["confirmed_at", "2016-03-11 02:32:30.637792"], ["authentication_token", "PZauaj5uW_4uP5tWVYkb"], ["created_at", "2016-03-11 02:32:30.640849"], ["updated_at", "2016-03-11 02:32:30.640849"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:30.657398"], ["updated_at", "2016-03-11 02:32:30.657398"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:30.670696"], ["updated_at", "2016-03-11 02:32:30.670696"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.3ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:30.705743"], ["current_sign_in_at", "2016-03-11 02:32:30.705743"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:30.706978"], ["id", 1]]  (12.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 13.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 5.0ms | ActiveRecord: 1.3ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.6ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oVdrspT9w3Sumcvt1nox"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$2gxHqlRegnfoGQoSUGwXNO1Td2McWhdb7lMiAmoSooF9A/Hz3RxPC"], ["confirmed_at", "2016-03-11 02:32:30.841595"], ["authentication_token", "oVdrspT9w3Sumcvt1nox"], ["created_at", "2016-03-11 02:32:30.845124"], ["updated_at", "2016-03-11 02:32:30.845124"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:30.861469"], ["updated_at", "2016-03-11 02:32:30.861469"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:30.876100"], ["updated_at", "2016-03-11 02:32:30.876100"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test20@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:30.913176"], ["current_sign_in_at", "2016-03-11 02:32:30.913176"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:30.914118"], ["id", 1]]  (10.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:30 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:32:30.965246"], ["updated_at", "2016-03-11 02:32:30.965246"]]  (11.5ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:32:30.983978"], ["updated_at", "2016-03-11 02:32:30.983978"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:32:30.999521"], ["id", 2]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 52ms (ActiveRecord: 33.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7HFxqXzWvBgQ55HqyysL"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$xarblJcWb7LWl.bjlMBUoedKOQ5PqrGTKtM/AdmW4HasnJp8L7Yzq"], ["confirmed_at", "2016-03-11 02:32:31.090989"], ["authentication_token", "7HFxqXzWvBgQ55HqyysL"], ["created_at", "2016-03-11 02:32:31.094188"], ["updated_at", "2016-03-11 02:32:31.094188"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:31.110028"], ["updated_at", "2016-03-11 02:32:31.110028"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:31.123288"], ["updated_at", "2016-03-11 02:32:31.123288"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test22@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:31.161661"], ["current_sign_in_at", "2016-03-11 02:32:31.161661"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:31.162778"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 7.5ms | ActiveRecord: 2.0ms)  (12.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "55mMxqgBr8RQJsKP1iCM"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$rnAiQNIyIaCqpZvlMrLdsuf6UV9CabajKaCTTnUG3TtSuNnJnDBj2"], ["confirmed_at", "2016-03-11 02:32:31.344492"], ["authentication_token", "55mMxqgBr8RQJsKP1iCM"], ["created_at", "2016-03-11 02:32:31.347786"], ["updated_at", "2016-03-11 02:32:31.347786"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:31.363019"], ["updated_at", "2016-03-11 02:32:31.363019"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:31.376746"], ["updated_at", "2016-03-11 02:32:31.376746"]]  (10.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:32:31.417501"], ["current_sign_in_at", "2016-03-11 02:32:31.417501"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:32:31.418634"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:32:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (12.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8Yvt34wtzbbC1_Rhmz3X"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "1c9eed25de05de5831c9b5b942b9506bf346078949571046c2eac06516d49a3d"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$BaU1/3iufsYs23Cv0TXYauPutaVl6C/WbXNEzLxspEkuBKI03KRjG"], ["authentication_token", "8Yvt34wtzbbC1_Rhmz3X"], ["created_at", "2016-03-11 02:32:31.637656"], ["updated_at", "2016-03-11 02:32:31.637656"], ["confirmation_token", "nn1Lp5WsxYPneLmt5STB"], ["confirmation_sent_at", "2016-03-11 02:32:31.638797"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.1ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.9ms Sent mail to user@example.com (3.2ms) Date: Fri, 11 Mar 2016 02:32:31 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22e3f9e57a_4d5455330766a8@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:32:31.650807"], ["updated_at", "2016-03-11 02:32:31.650807"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:32:31.665395"], ["updated_at", "2016-03-11 02:32:31.665395"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:32:31.676451"], ["updated_at", "2016-03-11 02:32:31.677355"], ["id", 1]]  (7.3ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (23.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (16.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (16.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (2.6ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7xZQVAbFttj8xpWjMfbB"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$e.4wg3vADfPF.wcWFkokk.bxQ5SnYzhMpfqXDr4./Ssv3wmTRKrFa"], ["confirmed_at", "2016-03-11 02:33:39.277063"], ["authentication_token", "7xZQVAbFttj8xpWjMfbB"], ["created_at", "2016-03-11 02:33:39.358484"], ["updated_at", "2016-03-11 02:33:39.358484"]]  (39.0ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:39.426723"], ["updated_at", "2016-03-11 02:33:39.426723"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:39.521389"], ["updated_at", "2016-03-11 02:33:39.521389"]]  (25.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:39 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (3.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (297.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 838ms (Views: 810.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:40.443692"], ["current_sign_in_at", "2016-03-11 02:33:40.443692"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:40.444952"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 55ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (7.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 0.7ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test1"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 8.0ms | ActiveRecord: 1.4ms)  (12.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "B8tivEQVmKuxsaAtHusW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$einG1PSg59ILU2nr9HktU.TBIaC1KdxLTU.P2EbLYcmrKpsDHLOEa"], ["confirmed_at", "2016-03-11 02:33:40.715205"], ["authentication_token", "B8tivEQVmKuxsaAtHusW"], ["created_at", "2016-03-11 02:33:40.718580"], ["updated_at", "2016-03-11 02:33:40.718580"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:40.733931"], ["updated_at", "2016-03-11 02:33:40.733931"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:40.748461"], ["updated_at", "2016-03-11 02:33:40.748461"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:40.783200"], ["current_sign_in_at", "2016-03-11 02:33:40.783200"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:40.784280"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 12.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 6.2ms | ActiveRecord: 1.5ms)  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9aQfuyVN7zL7P6_x8kv8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$tQvdX31sTUTnvEXXeuh7peFPrTUPkGoeJQPXfhWFkLShLhrfdQTku"], ["confirmed_at", "2016-03-11 02:33:40.920801"], ["authentication_token", "9aQfuyVN7zL7P6_x8kv8"], ["created_at", "2016-03-11 02:33:40.924570"], ["updated_at", "2016-03-11 02:33:40.924570"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:40.940593"], ["updated_at", "2016-03-11 02:33:40.940593"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:40.954729"], ["updated_at", "2016-03-11 02:33:40.954729"]]  (8.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:40.993011"], ["current_sign_in_at", "2016-03-11 02:33:40.993011"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:40.994228"], ["id", 1]]  (9.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 5.6ms | ActiveRecord: 1.4ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "S-7xKDTXTZ5EuP7cysjs"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$RDutZxUm6amWiRYU34tKV.1nx2/KyT2AtkoR8Rojmw6ghZ7n6NGfW"], ["confirmed_at", "2016-03-11 02:33:41.130982"], ["authentication_token", "S-7xKDTXTZ5EuP7cysjs"], ["created_at", "2016-03-11 02:33:41.134566"], ["updated_at", "2016-03-11 02:33:41.134566"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:41.151018"], ["updated_at", "2016-03-11 02:33:41.151018"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:41.166359"], ["updated_at", "2016-03-11 02:33:41.166359"]]  (8.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:41.202256"], ["current_sign_in_at", "2016-03-11 02:33:41.202256"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:41.203226"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 102ms (Views: 97.0ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:33:41.357269"], ["updated_at", "2016-03-11 02:33:41.357269"]]  (10.5ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:33:41.376828"], ["updated_at", "2016-03-11 02:33:41.376828"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.4ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:33:41.394417"], ["id", 2]]  (9.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 56ms (ActiveRecord: 33.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZKdnq_stpRd1Nbvjpmy6"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "51a801528aba48e715831594c2894ed12f81fb1f800910ccd904f5b278cd4830"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$J0ofmR94Ve8UwGJzBUs82.J4h74fJctQrV1X0KQtjN/Mr6FC6tvJe"], ["authentication_token", "ZKdnq_stpRd1Nbvjpmy6"], ["created_at", "2016-03-11 02:33:41.547329"], ["updated_at", "2016-03-11 02:33:41.547329"], ["confirmation_token", "8CnF3y63P9oZ1W1fKjZ7"], ["confirmation_sent_at", "2016-03-11 02:33:41.824673"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (5.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 499.7ms Sent mail to user@example.com (31.9ms) Date: Fri, 11 Mar 2016 02:33:42 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22e865db80_4fbe4932852445@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:42.396791"], ["updated_at", "2016-03-11 02:33:42.396791"]]  (18.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:42.421693"], ["updated_at", "2016-03-11 02:33:42.421693"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:33:42.433810"], ["updated_at", "2016-03-11 02:33:42.434457"], ["id", 1]]  (9.8ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (13.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (8.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (13.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "d_kxmNuuFiohSKTrnZm6"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$HbXOQiCF4YLj4z/7/AvMjuMdxqxeWAiB8HKRDuJUXdUXRA.MUy4SG"], ["confirmed_at", "2016-03-11 02:33:42.832654"], ["authentication_token", "d_kxmNuuFiohSKTrnZm6"], ["created_at", "2016-03-11 02:33:42.837143"], ["updated_at", "2016-03-11 02:33:42.837143"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:42.883357"], ["current_sign_in_at", "2016-03-11 02:33:42.883357"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:42.884822"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:42 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)  (12.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (26.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "z69Aqbrv36Jhyoq1mozL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$43fCrOgcB707Faj/SfvUV./QmdaWPCZDxrfxP/2kP3u0N8k6iV9ZK"], ["confirmed_at", "2016-03-11 02:33:43.057567"], ["authentication_token", "z69Aqbrv36Jhyoq1mozL"], ["created_at", "2016-03-11 02:33:43.061777"], ["updated_at", "2016-03-11 02:33:43.061777"]]  (11.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:43.082409"], ["updated_at", "2016-03-11 02:33:43.082409"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:43.099352"], ["updated_at", "2016-03-11 02:33:43.099352"]]  (10.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:43.141191"], ["current_sign_in_at", "2016-03-11 02:33:43.141191"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:43.142415"], ["id", 1]]  (11.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.4ms)  (10.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (11.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "fu2dBz3xrfzvhpgAt_FT"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$6wmX3BEXdO0Ndzlf9eqSx.09XuKxyQNnAyHXiPuVfmiQ8En5Z6Rju"], ["confirmed_at", "2016-03-11 02:33:43.481815"], ["authentication_token", "fu2dBz3xrfzvhpgAt_FT"], ["created_at", "2016-03-11 02:33:43.485886"], ["updated_at", "2016-03-11 02:33:43.485886"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:43.504209"], ["updated_at", "2016-03-11 02:33:43.504209"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:43.522670"], ["updated_at", "2016-03-11 02:33:43.522670"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test6"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test11@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:43.581307"], ["current_sign_in_at", "2016-03-11 02:33:43.581307"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:43.582480"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://test6.example.com/ Completed 302 Found in 24ms (ActiveRecord: 12.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 0.3ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oDgHxy_J1RhrQ_1sZEKy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$FfWu/Id58UQp.OrUj22L6OvxnZgpqjgAVITBekxfssCH.VlYS4q7q"], ["confirmed_at", "2016-03-11 02:33:43.696888"], ["authentication_token", "oDgHxy_J1RhrQ_1sZEKy"], ["created_at", "2016-03-11 02:33:43.699992"], ["updated_at", "2016-03-11 02:33:43.699992"]]  (18.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:43.729064"], ["updated_at", "2016-03-11 02:33:43.729064"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:43.745854"], ["updated_at", "2016-03-11 02:33:43.745854"]]  (10.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:43 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test7"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (15.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "nJuvhM-GQBeWV6xRyqEu"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$EjPL0yLGNjjnBKuVFz9cquzdQyDKwd2cvUzROmzkwKMnSiLhml3sa"], ["confirmed_at", "2016-03-11 02:33:43.902208"], ["authentication_token", "nJuvhM-GQBeWV6xRyqEu"], ["created_at", "2016-03-11 02:33:43.905682"], ["updated_at", "2016-03-11 02:33:43.905682"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:43.922882"], ["updated_at", "2016-03-11 02:33:43.922882"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:43.937639"], ["updated_at", "2016-03-11 02:33:43.937639"]]  (8.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "cCtvBzWnJm2U3m4XXggr"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$I1MSaqI1OpYRHguHs/Og3O4ZLNx9Q3bYwWuZvfQdVvbO/CX.EtDa6"], ["confirmed_at", "2016-03-11 02:33:43.951536"], ["authentication_token", "cCtvBzWnJm2U3m4XXggr"], ["created_at", "2016-03-11 02:33:43.955076"], ["updated_at", "2016-03-11 02:33:43.955076"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 02:33:43.971412"], ["updated_at", "2016-03-11 02:33:43.971412"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:33:43.986739"], ["updated_at", "2016-03-11 02:33:43.986739"]]  (16.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test8"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test14@example.com"]] Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Bper_AowsWsHfi3ujzam"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$gJF0nYtJgN.YnaVTGSNPA.J1nMvJPB5tsEna9iEmbKtwGwx9yBGKK"], ["confirmed_at", "2016-03-11 02:33:44.118745"], ["authentication_token", "Bper_AowsWsHfi3ujzam"], ["created_at", "2016-03-11 02:33:44.122892"], ["updated_at", "2016-03-11 02:33:44.122892"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:44.140467"], ["updated_at", "2016-03-11 02:33:44.140467"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:44.156415"], ["updated_at", "2016-03-11 02:33:44.156415"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test10"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test15@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5a6MjfP_31Hz_qVSsJLY"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$e0xO.p4WN9xVTv2jd.Ua/ONskSn9Nom61sS2oTTcQl9fzjGjf6VjC"], ["confirmed_at", "2016-03-11 02:33:44.328279"], ["authentication_token", "5a6MjfP_31Hz_qVSsJLY"], ["created_at", "2016-03-11 02:33:44.332712"], ["updated_at", "2016-03-11 02:33:44.332712"]]  (10.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:44.370805"], ["current_sign_in_at", "2016-03-11 02:33:44.370805"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:44.372154"], ["id", 1]]  (12.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 12.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "oomxeYZXcgFsntqnGfum"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$CVcc2P2hBTGwYI0yCJK/ZuCJueIPolqSfvJ7HaoKt7I5P.V6YQeB2"], ["confirmed_at", "2016-03-11 02:33:44.478992"], ["authentication_token", "oomxeYZXcgFsntqnGfum"], ["created_at", "2016-03-11 02:33:44.482703"], ["updated_at", "2016-03-11 02:33:44.482703"]]  (19.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:44.509536"], ["updated_at", "2016-03-11 02:33:44.509536"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:44.526349"], ["updated_at", "2016-03-11 02:33:44.526349"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (76.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (84.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 91ms (Views: 89.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 7.8ms | ActiveRecord: 1.6ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "YjprQ34T2QbXPJbMjAdP"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "51639925b0ea8eaa11bf83cd9890611751a9201f05a09f434cd751d6c29c11e1"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$blUQqGS3ts/gd6b/fhv1aOGUcntGGjQLUZFLfqRl21wmF2et7n5Wq"], ["authentication_token", "YjprQ34T2QbXPJbMjAdP"], ["created_at", "2016-03-11 02:33:44.834885"], ["updated_at", "2016-03-11 02:33:44.834885"], ["confirmation_token", "zrSzqj2JFXzjn3iUozcV"], ["confirmation_sent_at", "2016-03-11 02:33:44.836525"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 6.3ms Sent mail to mtdevise@example.com (4.8ms) Date: Fri, 11 Mar 2016 02:33:44 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22e88ceb4d_4fbe493285253d@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:44.850597"], ["updated_at", "2016-03-11 02:33:44.850597"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:44.865749"], ["updated_at", "2016-03-11 02:33:44.865749"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:33:44.875726"], ["updated_at", "2016-03-11 02:33:44.876657"], ["id", 1]]  (9.1ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:44.891527"], ["current_sign_in_at", "2016-03-11 02:33:44.891527"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:44.892273"], ["id", 1]]  (9.4ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 80ms (ActiveRecord: 40.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.4ms | ActiveRecord: 1.6ms)  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:33:45.101987"], ["updated_at", "2016-03-11 02:33:45.101987"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 8.1ms | ActiveRecord: 2.0ms)  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 6.8ms | ActiveRecord: 1.5ms)  (12.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7Mq6Nzxgso1S-CUKQGN3"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$FUd8iJJpJh8J6JeUNqu5a.0tb97e2YpfZtki90HApVrTeUq2jr0ZW"], ["confirmed_at", "2016-03-11 02:33:45.394443"], ["authentication_token", "7Mq6Nzxgso1S-CUKQGN3"], ["created_at", "2016-03-11 02:33:45.399995"], ["updated_at", "2016-03-11 02:33:45.399995"]]  (12.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:45.420128"], ["updated_at", "2016-03-11 02:33:45.420128"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:45.434754"], ["updated_at", "2016-03-11 02:33:45.434754"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Fcvnqrf8PTHa8QgqsrKD"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$GnPPcSjCXqvLAmhiqoN8/.S8idQw6YZKFxM1un15AR4kyJLYNHIIy"], ["confirmed_at", "2016-03-11 02:33:45.576370"], ["authentication_token", "Fcvnqrf8PTHa8QgqsrKD"], ["created_at", "2016-03-11 02:33:45.580449"], ["updated_at", "2016-03-11 02:33:45.580449"]]  (12.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:45.601385"], ["updated_at", "2016-03-11 02:33:45.601385"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:45.618589"], ["updated_at", "2016-03-11 02:33:45.618589"]]  (10.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:45.668002"], ["current_sign_in_at", "2016-03-11 02:33:45.668002"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:45.669115"], ["id", 1]]  (11.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 12.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:45 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (13.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (14.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RHyzLr8rQD-F4ex_kwTx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$ayPiNjicKN42wS08vtisweB3gXlpV/3TfAt9yQ.WT9y1/XaYzZtb2"], ["confirmed_at", "2016-03-11 02:33:45.841360"], ["authentication_token", "RHyzLr8rQD-F4ex_kwTx"], ["created_at", "2016-03-11 02:33:45.844951"], ["updated_at", "2016-03-11 02:33:45.844951"]]  (13.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:45.865979"], ["updated_at", "2016-03-11 02:33:45.865979"]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:45.887896"], ["updated_at", "2016-03-11 02:33:45.887896"]]  (13.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BSjFjHY2xyyPrPQnCiK-"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$iDHtDK3BRg6nTVIygUq35..OQFHJ5ttfhv1NaLU7vmExmyQZhzMfm"], ["confirmed_at", "2016-03-11 02:33:45.907135"], ["authentication_token", "BSjFjHY2xyyPrPQnCiK-"], ["created_at", "2016-03-11 02:33:45.911837"], ["updated_at", "2016-03-11 02:33:45.911837"]]  (13.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 02:33:45.933357"], ["updated_at", "2016-03-11 02:33:45.933357"]]  (8.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:33:45.947685"], ["updated_at", "2016-03-11 02:33:45.947685"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:33:45.974793"], ["updated_at", "2016-03-11 02:33:45.974793"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:33:45.989259"], ["updated_at", "2016-03-11 02:33:45.989259"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:46.030654"], ["current_sign_in_at", "2016-03-11 02:33:46.030654"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:46.031862"], ["id", 2]]  (13.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 14.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.3ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NWBAZT6tZC2f7aTW91Hb"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$8rXkXNxoBFuu9cbweqv4gOFlm2t90b0l5wZVSnUNCu7lJRyvFtnTq"], ["confirmed_at", "2016-03-11 02:33:46.163388"], ["authentication_token", "NWBAZT6tZC2f7aTW91Hb"], ["created_at", "2016-03-11 02:33:46.166478"], ["updated_at", "2016-03-11 02:33:46.166478"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:33:46.184294"], ["updated_at", "2016-03-11 02:33:46.184294"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:33:46.200892"], ["updated_at", "2016-03-11 02:33:46.200892"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Axk5XbmyY4MyzqjuN8Zb"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$ZfzUiNze9qO59raip/1/1eC9cMlkrIC/7u61AQR5ohBGTW7mouyxq"], ["confirmed_at", "2016-03-11 02:33:46.214784"], ["authentication_token", "Axk5XbmyY4MyzqjuN8Zb"], ["created_at", "2016-03-11 02:33:46.217511"], ["updated_at", "2016-03-11 02:33:46.217511"]]  (12.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 02:33:46.237144"], ["updated_at", "2016-03-11 02:33:46.237144"]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:33:46.251043"], ["updated_at", "2016-03-11 02:33:46.251043"]]  (10.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:33:46.263917"], ["updated_at", "2016-03-11 02:33:46.263917"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:33:46.276795"], ["updated_at", "2016-03-11 02:33:46.276795"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:33:46.319867"], ["current_sign_in_at", "2016-03-11 02:33:46.319867"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:33:46.321350"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:33:46 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'things';  (11.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (11.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wesNUsy2MYryPcQUbGAL"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$.WiAJIM8PFprSG8xwgbjfuyf20iBJfi6Ja1ttBBLjVFIgPNYF2aLG"], ["confirmed_at", "2016-03-11 02:35:19.324034"], ["authentication_token", "wesNUsy2MYryPcQUbGAL"], ["created_at", "2016-03-11 02:35:19.477932"], ["updated_at", "2016-03-11 02:35:19.477932"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:19.515336"], ["updated_at", "2016-03-11 02:35:19.515336"]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:19.608892"], ["updated_at", "2016-03-11 02:35:19.608892"]]  (12.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "iqYHHVepN4AWtWKBNSyY"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$PTC.YyeyF1VgYXaDMEP0XeI.ssx3bgAhZeOycuwD7O7Od6rGVWgQa"], ["confirmed_at", "2016-03-11 02:35:19.626346"], ["authentication_token", "iqYHHVepN4AWtWKBNSyY"], ["created_at", "2016-03-11 02:35:19.629731"], ["updated_at", "2016-03-11 02:35:19.629731"]]  (8.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", "2016-03-11 02:35:19.643004"], ["updated_at", "2016-03-11 02:35:19.643004"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:35:19.656115"], ["updated_at", "2016-03-11 02:35:19.656115"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:35:19.673151"], ["updated_at", "2016-03-11 02:35:19.673151"]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:35:19.686638"], ["updated_at", "2016-03-11 02:35:19.686638"]]  (6.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (5.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (399.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.8ms) Completed 200 OK in 976ms (Views: 947.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test2@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test2@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:20.714528"], ["current_sign_in_at", "2016-03-11 02:35:20.714528"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:20.716412"], ["id", 2]]  (14.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 67ms (ActiveRecord: 15.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (9.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 39ms (Views: 30.2ms | ActiveRecord: 0.9ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:35:20 +0000 Mtdevise::Account Load (3.7ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test2"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.4ms)  (12.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xDsqAUFd4KyXoNz_Skk8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$m4wfSKwh0r2hGCO39UYTa.u00fCcQzRO9Glfkfgz9cT/6O5kCw4Je"], ["confirmed_at", "2016-03-11 02:35:20.974806"], ["authentication_token", "xDsqAUFd4KyXoNz_Skk8"], ["created_at", "2016-03-11 02:35:20.978315"], ["updated_at", "2016-03-11 02:35:20.978315"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:20.994298"], ["updated_at", "2016-03-11 02:35:20.994298"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:21.008294"], ["updated_at", "2016-03-11 02:35:21.008294"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wwGgqNb9fWBvqzx6PiXR"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$wqiUqUwu2CfC80PYNNTR9OznLbU0dAAK6kBOL7uSksA/UMAGxkfGm"], ["confirmed_at", "2016-03-11 02:35:21.022429"], ["authentication_token", "wwGgqNb9fWBvqzx6PiXR"], ["created_at", "2016-03-11 02:35:21.025069"], ["updated_at", "2016-03-11 02:35:21.025069"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 2], ["created_at", "2016-03-11 02:35:21.041293"], ["updated_at", "2016-03-11 02:35:21.041293"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:35:21.057360"], ["updated_at", "2016-03-11 02:35:21.057360"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:35:21.070989"], ["updated_at", "2016-03-11 02:35:21.070989"]]  (7.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:35:21.081178"], ["updated_at", "2016-03-11 02:35:21.081178"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:21.115725"], ["current_sign_in_at", "2016-03-11 02:35:21.115725"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:21.116652"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NYQQFDRHzAkDxv4h1WHB"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$Xnazw.uveZaRpUBRzZ1rX.owwbmUvzXVQQol6XaVcLxXiefhsZMpm"], ["confirmed_at", "2016-03-11 02:35:21.284581"], ["authentication_token", "NYQQFDRHzAkDxv4h1WHB"], ["created_at", "2016-03-11 02:35:21.289527"], ["updated_at", "2016-03-11 02:35:21.289527"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:21.306592"], ["updated_at", "2016-03-11 02:35:21.306592"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:21.319375"], ["updated_at", "2016-03-11 02:35:21.319375"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:21.362089"], ["current_sign_in_at", "2016-03-11 02:35:21.362089"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:21.363611"], ["id", 1]]  (10.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)  (14.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "z9jwPAXH7-jsYqBsEpxm"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$tyPg7WGOxqtPBqZAP9SHSutw.4Xo/qVp4eN9hsBgvMUw3fPoWj2Ba"], ["confirmed_at", "2016-03-11 02:35:21.475264"], ["authentication_token", "z9jwPAXH7-jsYqBsEpxm"], ["created_at", "2016-03-11 02:35:21.478792"], ["updated_at", "2016-03-11 02:35:21.478792"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.9ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:21.496918"], ["updated_at", "2016-03-11 02:35:21.496918"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:21.510729"], ["updated_at", "2016-03-11 02:35:21.510729"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (11.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "YNoQhv9yW959Hbm1xKxt"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "a8a809450a498279af54bd4b7e4b044696a5e7893d84295b13da8d3068f5912c"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$rmM0tiH6Ey8sM0QBmILC5ObIi9T8sUq6j6hXPW7vXIStDYzePanrW"], ["authentication_token", "YNoQhv9yW959Hbm1xKxt"], ["created_at", "2016-03-11 02:35:21.683807"], ["updated_at", "2016-03-11 02:35:21.683807"], ["confirmation_token", "XxYm8XMogH1vN9Tw3EMp"], ["confirmation_sent_at", "2016-03-11 02:35:21.972569"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 573.7ms Sent mail to user@example.com (106.4ms) Date: Fri, 11 Mar 2016 02:35:22 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22eea937ec_508589328324f4@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:22.680551"], ["updated_at", "2016-03-11 02:35:22.680551"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:22.696554"], ["updated_at", "2016-03-11 02:35:22.696554"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:35:22.711208"], ["updated_at", "2016-03-11 02:35:22.712014"], ["id", 1]]  (9.0ms) commit transaction Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NxeX8PFJLoPL-VPaCfaY"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$t7c.KjLyd4Y1qO.4RrPLu.a3pvPXrbaELhjJQDJqeRBAwWSU1xfeu"], ["confirmed_at", "2016-03-11 02:35:22.843429"], ["authentication_token", "NxeX8PFJLoPL-VPaCfaY"], ["created_at", "2016-03-11 02:35:22.847096"], ["updated_at", "2016-03-11 02:35:22.847096"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:22.886082"], ["current_sign_in_at", "2016-03-11 02:35:22.886082"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:22.887325"], ["id", 1]]  (11.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:22 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms)  (12.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (13.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.0ms)  (8.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (17.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "b-_6cqtgJjftuxf8SfF5"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$J28oEzBMX8ST1KWYAz7FJ.2QVStEoMq6L4P2mj3QUIxV3dZmu6sHa"], ["confirmed_at", "2016-03-11 02:35:23.300068"], ["authentication_token", "b-_6cqtgJjftuxf8SfF5"], ["created_at", "2016-03-11 02:35:23.305736"], ["updated_at", "2016-03-11 02:35:23.305736"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:23.324815"], ["updated_at", "2016-03-11 02:35:23.324815"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:23.340133"], ["updated_at", "2016-03-11 02:35:23.340133"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:23.391696"], ["current_sign_in_at", "2016-03-11 02:35:23.391696"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:23.393208"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test7"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 31ms (Views: 17.7ms | ActiveRecord: 1.8ms)  (13.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (14.1ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bnpK2HTwZBgi4YR2f-yS"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$D2Prtz4CIl7RB.VYLGBhZ.9K0sbkcBv.Vsn/X8LXcCPwGr3pZJleO"], ["confirmed_at", "2016-03-11 02:35:23.642774"], ["authentication_token", "bnpK2HTwZBgi4YR2f-yS"], ["created_at", "2016-03-11 02:35:23.646202"], ["updated_at", "2016-03-11 02:35:23.646202"]]  (8.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:23.660414"], ["updated_at", "2016-03-11 02:35:23.660414"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:23.677897"], ["updated_at", "2016-03-11 02:35:23.677897"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:23.718515"], ["current_sign_in_at", "2016-03-11 02:35:23.718515"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:23.719879"], ["id", 1]]  (11.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.6ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:35:23.783551"], ["updated_at", "2016-03-11 02:35:23.783551"]]  (10.4ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:35:23.801293"], ["updated_at", "2016-03-11 02:35:23.801293"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.3ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:35:23.815839"], ["id", 2]]  (9.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 51ms (ActiveRecord: 31.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "CxyLkz7zzv_CzxLp-HWZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$Hr0PovGtOz.ArHHveye.juFPAlzjNfsroivxHW0dU/JxQm/nXaz.q"], ["confirmed_at", "2016-03-11 02:35:23.914471"], ["authentication_token", "CxyLkz7zzv_CzxLp-HWZ"], ["created_at", "2016-03-11 02:35:23.917985"], ["updated_at", "2016-03-11 02:35:23.917985"]]  (7.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:23.930462"], ["updated_at", "2016-03-11 02:35:23.930462"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:23.941648"], ["updated_at", "2016-03-11 02:35:23.941648"]]  (10.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:23.976800"], ["current_sign_in_at", "2016-03-11 02:35:23.976800"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:23.977859"], ["id", 1]]  (10.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:23 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 1.3ms)  (12.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "K17EivrzFe8Qmr-z1z4H"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$OTLA3Bd6VCS1Fynxut1FUO4iN60ftGZIc.WMA0IFaPIfgJ1ymvnpK"], ["confirmed_at", "2016-03-11 02:35:24.178587"], ["authentication_token", "K17EivrzFe8Qmr-z1z4H"], ["created_at", "2016-03-11 02:35:24.181694"], ["updated_at", "2016-03-11 02:35:24.181694"]]  (8.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:24.195266"], ["updated_at", "2016-03-11 02:35:24.195266"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:24.208384"], ["updated_at", "2016-03-11 02:35:24.208384"]]  (9.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:24.242348"], ["current_sign_in_at", "2016-03-11 02:35:24.242348"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:24.243229"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 5.4ms | ActiveRecord: 1.3ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "udzmV6dg5a7sf33ZJYW9"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$eZtqSh0Qwiju6.bSpFo8Au2loq0C1YP/7uwyM.aKqRk2QuvjUXgi."], ["confirmed_at", "2016-03-11 02:35:24.413719"], ["authentication_token", "udzmV6dg5a7sf33ZJYW9"], ["created_at", "2016-03-11 02:35:24.417215"], ["updated_at", "2016-03-11 02:35:24.417215"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:24.456139"], ["current_sign_in_at", "2016-03-11 02:35:24.456139"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:24.456994"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:35:24.556822"], ["updated_at", "2016-03-11 02:35:24.556822"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 6.8ms | ActiveRecord: 1.5ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sDNkxMeC_rGnxu5qK-rk"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$oHafEa8L1O7bTuCBA2R7qumkse2YZFCKu7wGl.bvK34jsopFDHryy"], ["confirmed_at", "2016-03-11 02:35:24.688533"], ["authentication_token", "sDNkxMeC_rGnxu5qK-rk"], ["created_at", "2016-03-11 02:35:24.692307"], ["updated_at", "2016-03-11 02:35:24.692307"]]  (11.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:24.709453"], ["updated_at", "2016-03-11 02:35:24.709453"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:24.722836"], ["updated_at", "2016-03-11 02:35:24.722836"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 28ms (Views: 11.7ms | ActiveRecord: 1.7ms)  (10.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 7.3ms | ActiveRecord: 1.5ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:24 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "p8Epnuhmq_boJVZpi2-i"]] Mtdevise::User Load (0.0ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "4d89f1b10da7271b08042cc0873b9dee377ff80dd72c50374ccaa0cf7cc3b05b"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$OBPR35mA76Cq2KcK4ElIVeadeYkvBD8iRC/rk1qK6t9mCH67Ezpb2"], ["authentication_token", "p8Epnuhmq_boJVZpi2-i"], ["created_at", "2016-03-11 02:35:25.026398"], ["updated_at", "2016-03-11 02:35:25.026398"], ["confirmation_token", "UR3yVsyu9Dwxy-e4BPDb"], ["confirmation_sent_at", "2016-03-11 02:35:25.027250"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.0ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 6.0ms Sent mail to mtdevise@example.com (2.5ms) Date: Fri, 11 Mar 2016 02:35:25 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22eed8f2b_50858932832576@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:25.038556"], ["updated_at", "2016-03-11 02:35:25.038556"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:25.053159"], ["updated_at", "2016-03-11 02:35:25.053159"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:35:25.066108"], ["updated_at", "2016-03-11 02:35:25.066666"], ["id", 1]]  (9.2ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:25.082115"], ["current_sign_in_at", "2016-03-11 02:35:25.082115"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:25.083037"], ["id", 1]]  (9.2ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 78ms (ActiveRecord: 43.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.4ms)  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 6.7ms | ActiveRecord: 1.4ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xEUu_jpbyEi2fsRxuGiy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$W8rO0RbHRz6gg.Q1MfnAxeIXDnutkILBf0JFDnaciLhAAZr1ciXp6"], ["confirmed_at", "2016-03-11 02:35:25.321338"], ["authentication_token", "xEUu_jpbyEi2fsRxuGiy"], ["created_at", "2016-03-11 02:35:25.324162"], ["updated_at", "2016-03-11 02:35:25.324162"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:25.340784"], ["updated_at", "2016-03-11 02:35:25.340784"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:25.355939"], ["updated_at", "2016-03-11 02:35:25.355939"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:25.392465"], ["current_sign_in_at", "2016-03-11 02:35:25.392465"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:25.393423"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.3ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "HCJsEuh8-vT8Xd_ap41L"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$bvpUq5q4VViRl.CwkHRz9utScBbqMxZXY2s3zQOYNOXlsqh.zNXXW"], ["confirmed_at", "2016-03-11 02:35:25.593939"], ["authentication_token", "HCJsEuh8-vT8Xd_ap41L"], ["created_at", "2016-03-11 02:35:25.596761"], ["updated_at", "2016-03-11 02:35:25.596761"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:25.611312"], ["updated_at", "2016-03-11 02:35:25.611312"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:25.624041"], ["updated_at", "2016-03-11 02:35:25.624041"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.7ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vTpFv7NqhXZDrUfys7dn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$Nz8V6bJzaqmJi14VTzLYPOZQrVsHd8EsTWhxr7UEv/ITBfnKwxGoy"], ["confirmed_at", "2016-03-11 02:35:25.746732"], ["authentication_token", "vTpFv7NqhXZDrUfys7dn"], ["created_at", "2016-03-11 02:35:25.749859"], ["updated_at", "2016-03-11 02:35:25.749859"]]  (7.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:25.762959"], ["updated_at", "2016-03-11 02:35:25.762959"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:25.777441"], ["updated_at", "2016-03-11 02:35:25.777441"]]  (11.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test22@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:35:25.820674"], ["current_sign_in_at", "2016-03-11 02:35:25.820674"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:35:25.821584"], ["id", 1]]  (12.0ms) commit transaction Redirected to http://test14.example.com/ Completed 302 Found in 23ms (ActiveRecord: 12.9ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (11.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "a8a7VmoqT1xavBXeYivL"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$jqI9WRDhjp0fBK0TPzo/HOD5J5x/Bno0/DcxWSmfaoG/e2P4dyWTa"], ["confirmed_at", "2016-03-11 02:35:25.920611"], ["authentication_token", "a8a7VmoqT1xavBXeYivL"], ["created_at", "2016-03-11 02:35:25.924858"], ["updated_at", "2016-03-11 02:35:25.924858"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:25.939359"], ["updated_at", "2016-03-11 02:35:25.939359"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:25.953563"], ["updated_at", "2016-03-11 02:35:25.953563"]]  (7.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:25 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test15"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test23@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.2ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Tzb-4HvaxemRExvbUHYJ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$2KcJQ14IoxyNnM/mPFGPJOwes68nHL3g0DNIZNFTDiMAOb/w5BZda"], ["confirmed_at", "2016-03-11 02:35:26.081854"], ["authentication_token", "Tzb-4HvaxemRExvbUHYJ"], ["created_at", "2016-03-11 02:35:26.085149"], ["updated_at", "2016-03-11 02:35:26.085149"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:35:26.101796"], ["updated_at", "2016-03-11 02:35:26.101796"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:35:26.114580"], ["updated_at", "2016-03-11 02:35:26.114580"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "uxxgQFv676UVbNCEpPvZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$Do6R0KBSB6Zl6L.T9UKTnO2rBa4hM3TJbhU4Bz6FeKc8sGyyFVj7C"], ["confirmed_at", "2016-03-11 02:35:26.128359"], ["authentication_token", "uxxgQFv676UVbNCEpPvZ"], ["created_at", "2016-03-11 02:35:26.131070"], ["updated_at", "2016-03-11 02:35:26.131070"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 02:35:26.145043"], ["updated_at", "2016-03-11 02:35:26.145043"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:35:26.158279"], ["updated_at", "2016-03-11 02:35:26.158279"]]  (6.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:35:26 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:26 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:35:26 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test16"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test16"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test25@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test25@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test16"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (18.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ARwJsQx8S7RgLdAd9rep"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$ILAJlKwkwYGjyrkGITQ7eejS8HbHx2aZZuZQHGrsgSDkOn8QKhN8i"], ["confirmed_at", "2016-03-11 02:36:30.714451"], ["authentication_token", "ARwJsQx8S7RgLdAd9rep"], ["created_at", "2016-03-11 02:36:30.801127"], ["updated_at", "2016-03-11 02:36:30.801127"]]  (14.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:30.893883"], ["updated_at", "2016-03-11 02:36:30.893883"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:30.989994"], ["updated_at", "2016-03-11 02:36:30.989994"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:31 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (411.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.9ms) Completed 200 OK in 971ms (Views: 903.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:32.074115"], ["current_sign_in_at", "2016-03-11 02:36:32.074115"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:32.075568"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 112ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (8.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 39ms (Views: 22.0ms | ActiveRecord: 0.8ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (8.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 16.2ms | ActiveRecord: 0.4ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test1"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 74ms (Views: 10.3ms | ActiveRecord: 1.6ms)  (28.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8hAPZBbzD8y_4r1W2R_z"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$em5rBkKeAijTuDm6mtIsie.ZaEcMRR.8AuGhTzAk/e7upZ7KYEXpW"], ["confirmed_at", "2016-03-11 02:36:32.424118"], ["authentication_token", "8hAPZBbzD8y_4r1W2R_z"], ["created_at", "2016-03-11 02:36:32.427558"], ["updated_at", "2016-03-11 02:36:32.427558"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:32.442159"], ["updated_at", "2016-03-11 02:36:32.442159"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:32.453087"], ["updated_at", "2016-03-11 02:36:32.453087"]]  (8.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:32.487521"], ["current_sign_in_at", "2016-03-11 02:36:32.487521"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:32.488546"], ["id", 1]]  (10.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "LcKcJnUggMn_pJie5Pd5"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$/Qixh9L7wR60R.JezNqgfePRE5dOsswD5blubulkb/cejmKUEmE/6"], ["confirmed_at", "2016-03-11 02:36:32.615734"], ["authentication_token", "LcKcJnUggMn_pJie5Pd5"], ["created_at", "2016-03-11 02:36:32.619092"], ["updated_at", "2016-03-11 02:36:32.619092"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:32.634741"], ["updated_at", "2016-03-11 02:36:32.634741"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:32.648254"], ["updated_at", "2016-03-11 02:36:32.648254"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:32.681047"], ["current_sign_in_at", "2016-03-11 02:36:32.681047"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:32.682049"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:36:32.729582"], ["updated_at", "2016-03-11 02:36:32.729582"]]  (8.5ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:36:32.745710"], ["updated_at", "2016-03-11 02:36:32.745710"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:36:32.762434"], ["id", 2]]  (8.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 49ms (ActiveRecord: 30.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6QDzgDkZNkzEjx4KZxxx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$ysxcpuffiK3ByZEZrmcuJOHZPOnktN1ndSXRt93Kh0KgHz5fZgc6q"], ["confirmed_at", "2016-03-11 02:36:32.855025"], ["authentication_token", "6QDzgDkZNkzEjx4KZxxx"], ["created_at", "2016-03-11 02:36:32.857955"], ["updated_at", "2016-03-11 02:36:32.857955"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:32.871118"], ["updated_at", "2016-03-11 02:36:32.871118"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:32.885825"], ["updated_at", "2016-03-11 02:36:32.885825"]]  (8.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:32.919395"], ["current_sign_in_at", "2016-03-11 02:36:32.919395"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:32.920355"], ["id", 1]]  (11.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:32 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (32.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 51ms (Views: 9.1ms | ActiveRecord: 33.4ms)  (10.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "W__kpyiVFCvj_ySxWSy9"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$gsTyU.bowACVJrvQo9Kqq.7j87tLjtdMndfReJlKzVrfkkgab4WVC"], ["confirmed_at", "2016-03-11 02:36:33.197675"], ["authentication_token", "W__kpyiVFCvj_ySxWSy9"], ["created_at", "2016-03-11 02:36:33.200912"], ["updated_at", "2016-03-11 02:36:33.200912"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:33.215644"], ["updated_at", "2016-03-11 02:36:33.215644"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:33.229276"], ["updated_at", "2016-03-11 02:36:33.229276"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vvevn6vx4_ycCjkWpQBs"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$fOygLYc4BdBjCPz.Vineju7PCplZBOnCBO1uJLupf8OW1OlvK3vR."], ["confirmed_at", "2016-03-11 02:36:33.242305"], ["authentication_token", "vvevn6vx4_ycCjkWpQBs"], ["created_at", "2016-03-11 02:36:33.244900"], ["updated_at", "2016-03-11 02:36:33.244900"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-11 02:36:33.260319"], ["updated_at", "2016-03-11 02:36:33.260319"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:36:33.273598"], ["updated_at", "2016-03-11 02:36:33.273598"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test5"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test10@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (9.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3P_zERuzXEgwgtzF-byx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$fgVvEXKgwWSpuPgk1tOscefiRxUm1h3eU9azHBy7Wbi4HwJVC7pnO"], ["confirmed_at", "2016-03-11 02:36:33.416715"], ["authentication_token", "3P_zERuzXEgwgtzF-byx"], ["created_at", "2016-03-11 02:36:33.419884"], ["updated_at", "2016-03-11 02:36:33.419884"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:33.434601"], ["updated_at", "2016-03-11 02:36:33.434601"]]  (7.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:33.446031"], ["updated_at", "2016-03-11 02:36:33.446031"]]  (6.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test7"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "fQaX3Gn-R5PqZe2GruhM"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$ZpuLAYdjWQSXCpuZykOixuQCsT8RjLi4ys5QxPsSRkZM/P1o1kY3C"], ["confirmed_at", "2016-03-11 02:36:33.565718"], ["authentication_token", "fQaX3Gn-R5PqZe2GruhM"], ["created_at", "2016-03-11 02:36:33.568889"], ["updated_at", "2016-03-11 02:36:33.568889"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:33.584428"], ["updated_at", "2016-03-11 02:36:33.584428"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:33.598475"], ["updated_at", "2016-03-11 02:36:33.598475"]]  (7.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.4ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test8"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:33.643858"], ["current_sign_in_at", "2016-03-11 02:36:33.643858"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:33.644946"], ["id", 1]]  (7.6ms) commit transaction Redirected to http://test8.example.com/ Completed 302 Found in 19ms (ActiveRecord: 8.6ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.4ms)  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KzspJmBaf931dV8rJium"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$FpSrKUM36QXdMeN2ES9ZJuO1zYH2bBfgOFbPUzEZ.Xt5ST.GrjsOy"], ["confirmed_at", "2016-03-11 02:36:33.744956"], ["authentication_token", "KzspJmBaf931dV8rJium"], ["created_at", "2016-03-11 02:36:33.747890"], ["updated_at", "2016-03-11 02:36:33.747890"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:33.763848"], ["updated_at", "2016-03-11 02:36:33.763848"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:33.777199"], ["updated_at", "2016-03-11 02:36:33.777199"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:33 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test9"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test13@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JsyhcT-vz_BEh4KHQXP-"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$0KSkflRlol3.TA2snumel..ENreVF4Aj2Gpvm7Mx/lPBEM1FZjBdW"], ["confirmed_at", "2016-03-11 02:36:33.950779"], ["authentication_token", "JsyhcT-vz_BEh4KHQXP-"], ["created_at", "2016-03-11 02:36:33.954348"], ["updated_at", "2016-03-11 02:36:33.954348"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:33.969536"], ["updated_at", "2016-03-11 02:36:33.969536"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:33.982299"], ["updated_at", "2016-03-11 02:36:33.982299"]]  (6.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "V9sWvGGN8G66sDBJJpre"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$GNT5cfwZ3UnyrRQlA5/.iemuNIkUDSEWGQETYzpvX/kvhG1c5iujW"], ["confirmed_at", "2016-03-11 02:36:33.992837"], ["authentication_token", "V9sWvGGN8G66sDBJJpre"], ["created_at", "2016-03-11 02:36:33.995251"], ["updated_at", "2016-03-11 02:36:33.995251"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 02:36:34.009060"], ["updated_at", "2016-03-11 02:36:34.009060"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:36:34.021543"], ["updated_at", "2016-03-11 02:36:34.021543"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:36:34.039214"], ["updated_at", "2016-03-11 02:36:34.039214"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:36:34.050938"], ["updated_at", "2016-03-11 02:36:34.050938"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:34.085780"], ["current_sign_in_at", "2016-03-11 02:36:34.085780"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:34.086798"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.3ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (13.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "uz56LKKsHv7ofc2kxk_j"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$p.Hfj3QKt8maMmfcHulMou6u1.bPveU6MiAK9mf2Y9o8BI0J3YTW6"], ["confirmed_at", "2016-03-11 02:36:34.214902"], ["authentication_token", "uz56LKKsHv7ofc2kxk_j"], ["created_at", "2016-03-11 02:36:34.218338"], ["updated_at", "2016-03-11 02:36:34.218338"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:34.232844"], ["updated_at", "2016-03-11 02:36:34.232844"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:34.246540"], ["updated_at", "2016-03-11 02:36:34.246540"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RoX2Qr9mox72kpuPGxzK"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$vL0LvPqqJPsQiqdOS8A7bekShP7vV0Fx/qFHJ8D/ozPiP3DWHtGmy"], ["confirmed_at", "2016-03-11 02:36:34.260767"], ["authentication_token", "RoX2Qr9mox72kpuPGxzK"], ["created_at", "2016-03-11 02:36:34.264509"], ["updated_at", "2016-03-11 02:36:34.264509"]]  (8.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 2], ["created_at", "2016-03-11 02:36:34.279959"], ["updated_at", "2016-03-11 02:36:34.279959"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:36:34.293783"], ["updated_at", "2016-03-11 02:36:34.293783"]]  (7.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:36:34.304289"], ["updated_at", "2016-03-11 02:36:34.304289"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:36:34.315780"], ["updated_at", "2016-03-11 02:36:34.315780"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test18@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test18@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:34.369934"], ["current_sign_in_at", "2016-03-11 02:36:34.369934"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:34.371523"], ["id", 2]]  (12.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 24ms (ActiveRecord: 13.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'things';  (6.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Zdfah9hL5yHTdzbNNjyL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$r5wbDnOQftXWsTvxkLEDlOdX1OrW1/lUBNa3IFQFNg3hElwfvndeS"], ["confirmed_at", "2016-03-11 02:36:34.515027"], ["authentication_token", "Zdfah9hL5yHTdzbNNjyL"], ["created_at", "2016-03-11 02:36:34.518606"], ["updated_at", "2016-03-11 02:36:34.518606"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:34.556641"], ["current_sign_in_at", "2016-03-11 02:36:34.556641"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:34.557513"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.4ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "kKg2PgX6bDyyVskKL7i8"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$cjLZjCppAaisU43MdkgHyORyi2dlJn8k2MM/NuMNtgQAQNbKxIYDi"], ["confirmed_at", "2016-03-11 02:36:34.660059"], ["authentication_token", "kKg2PgX6bDyyVskKL7i8"], ["created_at", "2016-03-11 02:36:34.663108"], ["updated_at", "2016-03-11 02:36:34.663108"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:34.678706"], ["updated_at", "2016-03-11 02:36:34.678706"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:34.693842"], ["updated_at", "2016-03-11 02:36:34.693842"]]  (7.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 7.9ms | ActiveRecord: 1.8ms)  (12.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.3ms | ActiveRecord: 1.6ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:34 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "QfJrRxJbaKpQd1fVHb3N"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "3182d54a1b744b6913bed1d3ee6b9f51ceb23429f553bb8fead8187abb999e03"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$zAUXmfAklAhLMyiM.o8b4..6QtSW7YqWPTE2xUkbPJg7H3H72mPhe"], ["authentication_token", "QfJrRxJbaKpQd1fVHb3N"], ["created_at", "2016-03-11 02:36:35.019910"], ["updated_at", "2016-03-11 02:36:35.019910"], ["confirmation_token", "qq4sskui2gsa6PKiQzt1"], ["confirmation_sent_at", "2016-03-11 02:36:35.304073"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (9.3ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 627.7ms Sent mail to mtdevise@example.com (44.1ms) Date: Fri, 11 Mar 2016 02:36:35 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e22f33f12c4_519f9d32873576@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:36.006832"], ["updated_at", "2016-03-11 02:36:36.006832"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:36.072062"], ["updated_at", "2016-03-11 02:36:36.072062"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:36:36.086668"], ["updated_at", "2016-03-11 02:36:36.087557"], ["id", 1]]  (9.1ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:36.102504"], ["current_sign_in_at", "2016-03-11 02:36:36.102504"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:36.103377"], ["id", 1]]  (9.1ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 1105ms (ActiveRecord: 45.7ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (8.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.4ms | ActiveRecord: 1.4ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:36:36.295391"], ["updated_at", "2016-03-11 02:36:36.295391"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 7.1ms | ActiveRecord: 1.7ms)  (10.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (7.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "KXSWy4hGgRJJVTKND3ug"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$Gk5RIbrXwY6kYr06ewMzX.y5NM0WhxWiDU0jeJx7FWc5o7r7gBhg."], ["confirmed_at", "2016-03-11 02:36:36.655735"], ["authentication_token", "KXSWy4hGgRJJVTKND3ug"], ["created_at", "2016-03-11 02:36:36.658663"], ["updated_at", "2016-03-11 02:36:36.658663"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:36.690730"], ["current_sign_in_at", "2016-03-11 02:36:36.690730"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:36.691672"], ["id", 1]]  (9.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:36 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms)  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (6.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WbXJm76mnGwxGW6u9hbu"]] Mtdevise::User Load (0.0ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "a802128827958cc60c3fe14f410aeec28aa9c06374c73972e47be70df1e401af"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$gQ9iZ8iKR8DdzVN3CpPrZu8w6Bh.pWi.wzSevPS3ltgVM5F6GOvci"], ["authentication_token", "WbXJm76mnGwxGW6u9hbu"], ["created_at", "2016-03-11 02:36:36.902296"], ["updated_at", "2016-03-11 02:36:36.902296"], ["confirmation_token", "ZNH7zXwhHY6z6p6BYQeD"], ["confirmation_sent_at", "2016-03-11 02:36:36.903164"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.7ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.3ms Sent mail to user@example.com (2.2ms) Date: Fri, 11 Mar 2016 02:36:36 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e22f34de73d_519f9d32873647@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:36.912872"], ["updated_at", "2016-03-11 02:36:36.912872"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:36.926279"], ["updated_at", "2016-03-11 02:36:36.926279"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:36:36.935101"], ["updated_at", "2016-03-11 02:36:36.935712"], ["id", 1]]  (10.0ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (10.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.7ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RzYi1zgzzyz7qzpEmN37"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$Z5SuUWBbFV8XG/AFsZj4teH7qeGYy8Tzzhmve410jP/jfLfFD7BRu"], ["confirmed_at", "2016-03-11 02:36:37.064088"], ["authentication_token", "RzYi1zgzzyz7qzpEmN37"], ["created_at", "2016-03-11 02:36:37.067012"], ["updated_at", "2016-03-11 02:36:37.067012"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:37.082293"], ["updated_at", "2016-03-11 02:36:37.082293"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:37.093801"], ["updated_at", "2016-03-11 02:36:37.093801"]]  (7.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "o9kP4N9cpsWv7p9CUJ_s"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$pG8yN1aTHD3At2zPme1xPe8TbCSIwqUQb.AjsD7m7DLBK1Awu.182"], ["confirmed_at", "2016-03-11 02:36:37.204986"], ["authentication_token", "o9kP4N9cpsWv7p9CUJ_s"], ["created_at", "2016-03-11 02:36:37.207897"], ["updated_at", "2016-03-11 02:36:37.207897"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:37.222214"], ["updated_at", "2016-03-11 02:36:37.222214"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:37.232741"], ["updated_at", "2016-03-11 02:36:37.232741"]]  (9.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test22@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:37.270373"], ["current_sign_in_at", "2016-03-11 02:36:37.270373"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:37.271430"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "soVxcNs9PzwRFwQsqMXz"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$ussL2OEHLb2bsNfM71RxFuWPtMjzsvC6FI7jhbhXyYzte9J8qb2Ii"], ["confirmed_at", "2016-03-11 02:36:37.414705"], ["authentication_token", "soVxcNs9PzwRFwQsqMXz"], ["created_at", "2016-03-11 02:36:37.417730"], ["updated_at", "2016-03-11 02:36:37.417730"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:36:37.430704"], ["updated_at", "2016-03-11 02:36:37.430704"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:36:37.442439"], ["updated_at", "2016-03-11 02:36:37.442439"]]  (6.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:36:37.474488"], ["current_sign_in_at", "2016-03-11 02:36:37.474488"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:36:37.475344"], ["id", 1]]  (10.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:36:37 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (12.3ms) DELETE FROM "things";  (2.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "trDgbvRuskWM2q2yXb3T"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$AYX58eEKJK/2ZOXJo8C4MevPfwTuaTFdRyvv2TaxRG06V0Z2jhOjK"], ["confirmed_at", "2016-03-11 02:42:33.947206"], ["authentication_token", "trDgbvRuskWM2q2yXb3T"], ["created_at", "2016-03-11 02:42:34.104845"], ["updated_at", "2016-03-11 02:42:34.104845"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:34.153205"], ["updated_at", "2016-03-11 02:42:34.153205"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:34.296149"], ["updated_at", "2016-03-11 02:42:34.296149"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:34 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (331.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 983ms (Views: 952.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:35.336801"], ["current_sign_in_at", "2016-03-11 02:42:35.336801"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:35.337974"], ["id", 1]]  (13.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 56ms (ActiveRecord: 14.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.6ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.6ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (57.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 88ms (Views: 74.2ms | ActiveRecord: 1.2ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (16.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (13.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1tQUNmqDvL9VKhL__RZQ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$PEOO1sbhD3Fu.t5jsVqnlu1Hcr3yoOct0IN6i1KUhKYoFfJAWpAOe"], ["confirmed_at", "2016-03-11 02:42:35.684462"], ["authentication_token", "1tQUNmqDvL9VKhL__RZQ"], ["created_at", "2016-03-11 02:42:35.687761"], ["updated_at", "2016-03-11 02:42:35.687761"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:35.724317"], ["current_sign_in_at", "2016-03-11 02:42:35.724317"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:35.725422"], ["id", 1]]  (7.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 8.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.8ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (11.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:35 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 10.0ms | ActiveRecord: 1.4ms)  (67.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zhrWMFs3UKjm_866zksD"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$ZLZ5G04qcfrw8BGBc8of9OtNe0Itmc0M5Gr4BJvW7qdmYxKoFfYgi"], ["confirmed_at", "2016-03-11 02:42:36.114546"], ["authentication_token", "zhrWMFs3UKjm_866zksD"], ["created_at", "2016-03-11 02:42:36.118356"], ["updated_at", "2016-03-11 02:42:36.118356"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:36.134759"], ["updated_at", "2016-03-11 02:42:36.134759"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:36.148182"], ["updated_at", "2016-03-11 02:42:36.148182"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 7.6ms | ActiveRecord: 1.6ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:42:36.312912"], ["updated_at", "2016-03-11 02:42:36.312912"]]  (11.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 12.1ms | ActiveRecord: 2.1ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (3.1ms) Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:36 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jGWiiuZCdcKMvAK_BdhG"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "eb245b62210e2127ba5b4738ac3ec1e9329a921620e6f9c156a77f1ab0df8435"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$77u0TVy4eRbDFMY2l9qJ2Ozj9sFaZL.k.wM097OcQQ4icQWZ4JGvC"], ["authentication_token", "jGWiiuZCdcKMvAK_BdhG"], ["created_at", "2016-03-11 02:42:36.615235"], ["updated_at", "2016-03-11 02:42:36.615235"], ["confirmation_token", "iu6u-_sz2uUsDxZEm88n"], ["confirmation_sent_at", "2016-03-11 02:42:36.924223"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (17.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 758.1ms Sent mail to mtdevise@example.com (50.7ms) Date: Fri, 11 Mar 2016 02:42:37 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e2309db6ad8_5549213142668f@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:37.764460"], ["updated_at", "2016-03-11 02:42:37.764460"]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:37.786482"], ["updated_at", "2016-03-11 02:42:37.786482"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:42:37.800271"], ["updated_at", "2016-03-11 02:42:37.801447"], ["id", 1]]  (10.2ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:37.821930"], ["current_sign_in_at", "2016-03-11 02:42:37.821930"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:37.822769"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 1233ms (ActiveRecord: 52.7ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:37 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (13.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 27ms (Views: 23.7ms | ActiveRecord: 0.4ms)  (11.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:37 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:37 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 8.3ms | ActiveRecord: 1.9ms)  (13.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WVERawWSRnmeEAg2xasE"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "9a4ff11ff69037044d1728ca1a5c6ed6b5a02ce3cee1e60fcb8e5b98aad5ce45"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$98MJsmafCZUX/TQuOjpaouPJDh5xF55F/BoYsc19dUKGBbLGPDqSi"], ["authentication_token", "WVERawWSRnmeEAg2xasE"], ["created_at", "2016-03-11 02:42:38.137964"], ["updated_at", "2016-03-11 02:42:38.137964"], ["confirmation_token", "rGRxYo_uY7rN7xNjoxdo"], ["confirmation_sent_at", "2016-03-11 02:42:38.139375"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 6.5ms Sent mail to user@example.com (3.4ms) Date: Fri, 11 Mar 2016 02:42:38 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2309e24c1a_55492131426769@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:38.152904"], ["updated_at", "2016-03-11 02:42:38.152904"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:38.169807"], ["updated_at", "2016-03-11 02:42:38.169807"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:42:38.180062"], ["updated_at", "2016-03-11 02:42:38.181366"], ["id", 1]]  (10.9ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (15.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test4@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3vP5peFNRxFFtWbqSzN2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test4@example.com"], ["encrypted_password", "$2a$04$QcuiTUK0r3zvB0YgSN8mM.Ge3WnbUm62E1ShsJ09nP/4x42yMPdGi"], ["confirmed_at", "2016-03-11 02:42:38.310465"], ["authentication_token", "3vP5peFNRxFFtWbqSzN2"], ["created_at", "2016-03-11 02:42:38.313420"], ["updated_at", "2016-03-11 02:42:38.313420"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:38.329104"], ["updated_at", "2016-03-11 02:42:38.329104"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:38.342424"], ["updated_at", "2016-03-11 02:42:38.342424"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GBKpzWZs-6mXM_y2EPHC"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$0oEK5b/rrutjE/z9KX1ewe/Lb5KAT.ugq0FBSgLsu/HRiY4vbmK16"], ["confirmed_at", "2016-03-11 02:42:38.357055"], ["authentication_token", "GBKpzWZs-6mXM_y2EPHC"], ["created_at", "2016-03-11 02:42:38.360096"], ["updated_at", "2016-03-11 02:42:38.360096"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 2], ["created_at", "2016-03-11 02:42:38.377662"], ["updated_at", "2016-03-11 02:42:38.377662"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:42:38.402768"], ["updated_at", "2016-03-11 02:42:38.402768"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:42:38.426167"], ["updated_at", "2016-03-11 02:42:38.426167"]]  (10.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:42:38.439399"], ["updated_at", "2016-03-11 02:42:38.439399"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test4@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test4@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:38.477437"], ["current_sign_in_at", "2016-03-11 02:42:38.477437"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:38.478535"], ["id", 1]]  (10.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 10.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.7ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 0.9ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.3ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'things';  (12.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (18.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "tpjqZCXbe4RQ76MJQEfZ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$LZKymO1ze7A/l72dCEpkNOKelTb215d/DrquSye5z2SAAuCQReXgu"], ["confirmed_at", "2016-03-11 02:42:38.641827"], ["authentication_token", "tpjqZCXbe4RQ76MJQEfZ"], ["created_at", "2016-03-11 02:42:38.645075"], ["updated_at", "2016-03-11 02:42:38.645075"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:38.661731"], ["updated_at", "2016-03-11 02:42:38.661731"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:38.676581"], ["updated_at", "2016-03-11 02:42:38.676581"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZxqZC2buYKddHR_1BQBV"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$slXs4.ievMbkx2Rp1BzlTuxVj1K1ZG8WCQOAYxz31EutQgE1Id1jS"], ["confirmed_at", "2016-03-11 02:42:38.690484"], ["authentication_token", "ZxqZC2buYKddHR_1BQBV"], ["created_at", "2016-03-11 02:42:38.694567"], ["updated_at", "2016-03-11 02:42:38.694567"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-11 02:42:38.712062"], ["updated_at", "2016-03-11 02:42:38.712062"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:42:38.726398"], ["updated_at", "2016-03-11 02:42:38.726398"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:42:38.739300"], ["updated_at", "2016-03-11 02:42:38.739300"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:42:38.753359"], ["updated_at", "2016-03-11 02:42:38.753359"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (5.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (10.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 23ms (Views: 16.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:38.813499"], ["current_sign_in_at", "2016-03-11 02:42:38.813499"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:38.814930"], ["id", 2]]  (12.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 26ms (ActiveRecord: 13.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:38 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (6.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (12.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GnfJcCXF1ez1mbpHYZix"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$ffVkFEE.aHiHUuNe3tvtnO.EOjZydSrA9v0qnLWX0iQJcyqvScgA."], ["confirmed_at", "2016-03-11 02:42:39.185421"], ["authentication_token", "GnfJcCXF1ez1mbpHYZix"], ["created_at", "2016-03-11 02:42:39.191170"], ["updated_at", "2016-03-11 02:42:39.191170"]]  (11.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:39.234374"], ["current_sign_in_at", "2016-03-11 02:42:39.234374"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:39.235538"], ["id", 1]]  (11.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ZcaSZeA4JZ9H3ByusjHV"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$gZ5Uk9bix7Wl7GcH7J.0teRGk86CjuZyi4IxJgcpB9HMGtd5AliLe"], ["confirmed_at", "2016-03-11 02:42:39.372673"], ["authentication_token", "ZcaSZeA4JZ9H3ByusjHV"], ["created_at", "2016-03-11 02:42:39.376997"], ["updated_at", "2016-03-11 02:42:39.376997"]]  (7.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:39.396637"], ["updated_at", "2016-03-11 02:42:39.396637"]]  (8.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:39.414935"], ["updated_at", "2016-03-11 02:42:39.414935"]]  (9.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test7"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 6ms (ActiveRecord: 1.0ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "cxBVGsGd6f9jaWzx5vce"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$z4IXAHw09DjajY99VT9Jk.rvg6plMCHcamQg1XCZWzw4JleOxEXzC"], ["confirmed_at", "2016-03-11 02:42:39.550143"], ["authentication_token", "cxBVGsGd6f9jaWzx5vce"], ["created_at", "2016-03-11 02:42:39.553487"], ["updated_at", "2016-03-11 02:42:39.553487"]]  (8.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:39.568224"], ["updated_at", "2016-03-11 02:42:39.568224"]]  (20.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:39.594444"], ["updated_at", "2016-03-11 02:42:39.594444"]]  (14.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JuzEt2Y8mCz9wiu7Tdgy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$T3s8R95C4NH0ZvoXRF7mkOmoFPhNr0fEfoidHbLELCXfWGagebG8m"], ["confirmed_at", "2016-03-11 02:42:39.614109"], ["authentication_token", "JuzEt2Y8mCz9wiu7Tdgy"], ["created_at", "2016-03-11 02:42:39.618069"], ["updated_at", "2016-03-11 02:42:39.618069"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 02:42:39.631481"], ["updated_at", "2016-03-11 02:42:39.631481"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:42:39.645233"], ["updated_at", "2016-03-11 02:42:39.645233"]]  (11.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test8"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test12@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test8"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (10.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Joz459w3ZGPUbuykwbxt"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$ZEtlrAxuUPgOqxluQJsF2.EvDtEdqtpgxWj6OAgrdvO/B0VsJeYse"], ["confirmed_at", "2016-03-11 02:42:39.780071"], ["authentication_token", "Joz459w3ZGPUbuykwbxt"], ["created_at", "2016-03-11 02:42:39.783445"], ["updated_at", "2016-03-11 02:42:39.783445"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:39.798811"], ["updated_at", "2016-03-11 02:42:39.798811"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:39.812902"], ["updated_at", "2016-03-11 02:42:39.812902"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test10"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:39.933442"], ["current_sign_in_at", "2016-03-11 02:42:39.933442"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:39.934481"], ["id", 1]]  (10.3ms) commit transaction Redirected to http://test10.example.com/ Completed 302 Found in 22ms (ActiveRecord: 11.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:39 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test10"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test10"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.3ms)  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (14.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "fVmMJo1rrtLJRELx_He9"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$v/as309H96nwZYclzEuw1urc.Qpj4Y5WKWEeI4ZFSyEgJnTCvSUsO"], ["confirmed_at", "2016-03-11 02:42:40.044187"], ["authentication_token", "fVmMJo1rrtLJRELx_He9"], ["created_at", "2016-03-11 02:42:40.047817"], ["updated_at", "2016-03-11 02:42:40.047817"]]  (10.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:40.063851"], ["updated_at", "2016-03-11 02:42:40.063851"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:40.077187"], ["updated_at", "2016-03-11 02:42:40.077187"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test11"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test14@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "gyhnum1xbnyiyFfMsknq"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$CH8YZwfRobKfVgfE9TYHZ.fJcEM5.uleSsRJ50j2RIMvvbS.tNoFS"], ["confirmed_at", "2016-03-11 02:42:40.243508"], ["authentication_token", "gyhnum1xbnyiyFfMsknq"], ["created_at", "2016-03-11 02:42:40.246767"], ["updated_at", "2016-03-11 02:42:40.246767"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:40.264251"], ["updated_at", "2016-03-11 02:42:40.264251"]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:40.278418"], ["updated_at", "2016-03-11 02:42:40.278418"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test15@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:40.318374"], ["current_sign_in_at", "2016-03-11 02:42:40.318374"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:40.319303"], ["id", 1]]  (8.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 9.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 9.0ms | ActiveRecord: 1.4ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4u1MN9nK7m468mqzwTjx"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$ZfGXnodXwAVJmFHDl1ly9eAFZdgZtrhzO23i0UeNPFW.5Dh8nnGgi"], ["confirmed_at", "2016-03-11 02:42:40.455607"], ["authentication_token", "4u1MN9nK7m468mqzwTjx"], ["created_at", "2016-03-11 02:42:40.458576"], ["updated_at", "2016-03-11 02:42:40.458576"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:40.472907"], ["updated_at", "2016-03-11 02:42:40.472907"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:40.488372"], ["updated_at", "2016-03-11 02:42:40.488372"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:40.526915"], ["current_sign_in_at", "2016-03-11 02:42:40.526915"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:40.528250"], ["id", 1]]  (9.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 1.3ms)  (10.2ms) DELETE FROM "things";  (1.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "5RfK7beZ3YqWPEU-eWHG"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$o9fU19is93D3A/d8H.M13uwHh3.zkQuTOTenptKkAoR0w8nZZn5S6"], ["confirmed_at", "2016-03-11 02:42:40.671884"], ["authentication_token", "5RfK7beZ3YqWPEU-eWHG"], ["created_at", "2016-03-11 02:42:40.674761"], ["updated_at", "2016-03-11 02:42:40.674761"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:40.689216"], ["updated_at", "2016-03-11 02:42:40.689216"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:40.702083"], ["updated_at", "2016-03-11 02:42:40.702083"]]  (6.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:40.734881"], ["current_sign_in_at", "2016-03-11 02:42:40.734881"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:40.735974"], ["id", 1]]  (9.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 18ms (ActiveRecord: 10.3ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test14"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (2.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.2ms | ActiveRecord: 1.2ms)  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Yun3KsexRNzPTQHtUUKm"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$E2dpYm/9OSzK9zN0QWekYO2MP5H5NM9nSF7ins.Um./tXjqVfnv.6"], ["confirmed_at", "2016-03-11 02:42:40.867006"], ["authentication_token", "Yun3KsexRNzPTQHtUUKm"], ["created_at", "2016-03-11 02:42:40.871059"], ["updated_at", "2016-03-11 02:42:40.871059"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.8ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:40.885873"], ["updated_at", "2016-03-11 02:42:40.885873"]]  (7.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:40.897443"], ["updated_at", "2016-03-11 02:42:40.897443"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:40.934030"], ["current_sign_in_at", "2016-03-11 02:42:40.934030"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:40.935217"], ["id", 1]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.1ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:42:40 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.6ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:42:40.990450"], ["updated_at", "2016-03-11 02:42:40.990450"]]  (9.9ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:42:41.010803"], ["updated_at", "2016-03-11 02:42:41.010803"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:42:41.029297"], ["id", 2]]  (8.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 56ms (ActiveRecord: 31.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)  (6.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DgGjwGsgbMG1u9FyBgdW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$4ZymktWhYQOVVrN7teLUQO7zBfR15Kf8ntKNPE.mUpGvhkEPtM9DK"], ["confirmed_at", "2016-03-11 02:42:41.147481"], ["authentication_token", "DgGjwGsgbMG1u9FyBgdW"], ["created_at", "2016-03-11 02:42:41.150250"], ["updated_at", "2016-03-11 02:42:41.150250"]]  (7.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:41.165719"], ["updated_at", "2016-03-11 02:42:41.165719"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:41.178850"], ["updated_at", "2016-03-11 02:42:41.178850"]]  (8.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (5.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "i25uHzJSVGc-A9Wiyrwk"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$aYQavuLDIZX4oZZqiKPOROFYbTCFkjer7ljRGzwZgpcF3OydA.hle"], ["confirmed_at", "2016-03-11 02:42:41.303744"], ["authentication_token", "i25uHzJSVGc-A9Wiyrwk"], ["created_at", "2016-03-11 02:42:41.307266"], ["updated_at", "2016-03-11 02:42:41.307266"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:42:41.323840"], ["updated_at", "2016-03-11 02:42:41.323840"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:42:41.336933"], ["updated_at", "2016-03-11 02:42:41.336933"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:42:41.371137"], ["current_sign_in_at", "2016-03-11 02:42:41.371137"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:42:41.372577"], ["id", 1]]  (10.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:42:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (10.0ms) DELETE FROM "things";  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (24.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hY3fz3MSXhE-cFz49DMT"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$LGdJc7OjePw7iuEteEEVIuUHSekRar6yOrdu/u5nFi4ufdMYX8xIG"], ["confirmed_at", "2016-03-11 02:47:54.036561"], ["authentication_token", "hY3fz3MSXhE-cFz49DMT"], ["created_at", "2016-03-11 02:47:54.131768"], ["updated_at", "2016-03-11 02:47:54.131768"]]  (12.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:54.191359"], ["updated_at", "2016-03-11 02:47:54.191359"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:54.286228"], ["updated_at", "2016-03-11 02:47:54.286228"]]  (12.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (213.0ms) Completed 500 Internal Server Error in 283ms (ActiveRecord: 0.0ms)  (13.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Ca4mHz4L_5sj3Qysz5d-"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$jsoYD8Gvh.H7EtBJUASUUOOK2feNJ5OhC62hhika1xlFgJZauSxtO"], ["confirmed_at", "2016-03-11 02:47:54.691383"], ["authentication_token", "Ca4mHz4L_5sj3Qysz5d-"], ["created_at", "2016-03-11 02:47:54.694783"], ["updated_at", "2016-03-11 02:47:54.694783"]]  (10.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:54.712055"], ["updated_at", "2016-03-11 02:47:54.712055"]]  (10.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:54.726737"], ["updated_at", "2016-03-11 02:47:54.726737"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (13.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "HAKAV5r9DdwV6sn95sdP"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$1G0G/edAM3GklZeztXQYEeO9FkUuTSrSRzi0N4Sf4a89.uZ8P9fU6"], ["confirmed_at", "2016-03-11 02:47:54.883993"], ["authentication_token", "HAKAV5r9DdwV6sn95sdP"], ["created_at", "2016-03-11 02:47:54.888659"], ["updated_at", "2016-03-11 02:47:54.888659"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:54.907638"], ["updated_at", "2016-03-11 02:47:54.907638"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:54.926934"], ["updated_at", "2016-03-11 02:47:54.926934"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:54 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "4RQx_LqkRM584TPQ2ips"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$vpuNIjs3Qn0fI/Lqw5qEGussmwROPYOkIPrs1qMf.MzSYxuLjdnkG"], ["confirmed_at", "2016-03-11 02:47:55.030743"], ["authentication_token", "4RQx_LqkRM584TPQ2ips"], ["created_at", "2016-03-11 02:47:55.034144"], ["updated_at", "2016-03-11 02:47:55.034144"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:55.049626"], ["updated_at", "2016-03-11 02:47:55.049626"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:55.065061"], ["updated_at", "2016-03-11 02:47:55.065061"]]  (12.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:55 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.5ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (12.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (17.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6r3iK9dwAQ2r-fwSQ9uf"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "31cf0ac2145f1a76cbd35f9a872b02bf6ae1e4fbaea988c9a0a7a9800d4b5482"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$cy7ZYI5Yqky1OcnOShGSW.nLgpMBScdXUtj5QrWBGpbOdcqXulEe2"], ["authentication_token", "6r3iK9dwAQ2r-fwSQ9uf"], ["created_at", "2016-03-11 02:47:55.335603"], ["updated_at", "2016-03-11 02:47:55.335603"], ["confirmation_token", "yn5RSp3S9ztU_sJU-PyD"], ["confirmation_sent_at", "2016-03-11 02:47:55.535689"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (13.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 328.1ms Sent mail to user@example.com (55.6ms) Date: Fri, 11 Mar 2016 02:47:55 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e231dbe30d1_56e88f324160c8@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:55.946732"], ["updated_at", "2016-03-11 02:47:55.946732"]]  (11.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:55.965109"], ["updated_at", "2016-03-11 02:47:55.965109"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:47:55.976187"], ["updated_at", "2016-03-11 02:47:55.976860"], ["id", 1]]  (7.5ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "vZsxxT8wgiSKfeCrcDno"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$YhtGyvVK30.TFMuqLLTCF.VkJjGeBL54cI.yGNBP67M8kll5VPjFK"], ["confirmed_at", "2016-03-11 02:47:56.097242"], ["authentication_token", "vZsxxT8wgiSKfeCrcDno"], ["created_at", "2016-03-11 02:47:56.100431"], ["updated_at", "2016-03-11 02:47:56.100431"]]  (11.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.8ms) Completed 200 OK in 372ms (Views: 371.6ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (11.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (31.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 41.5ms | ActiveRecord: 0.0ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:56 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (11.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-ZbWXRx93gCv-AfnnPQd"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$VzK/IXW0bEtMMNxbXrn7HOs4iRowdBrzrfWOC5cZj4v73i7avRJGG"], ["confirmed_at", "2016-03-11 02:47:56.875567"], ["authentication_token", "-ZbWXRx93gCv-AfnnPQd"], ["created_at", "2016-03-11 02:47:56.878609"], ["updated_at", "2016-03-11 02:47:56.878609"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:56.895321"], ["updated_at", "2016-03-11 02:47:56.895321"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:56.910223"], ["updated_at", "2016-03-11 02:47:56.910223"]]  (10.2ms) commit transaction  (0.2ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ErmT75T8sxqsrYTmC14z"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$8PTPM.EztwmLGhdu3gIvkOYQkE0Nx1XZHEVLtNYtcrkraElOpCHGO"], ["confirmed_at", "2016-03-11 02:47:56.925144"], ["authentication_token", "ErmT75T8sxqsrYTmC14z"], ["created_at", "2016-03-11 02:47:56.928665"], ["updated_at", "2016-03-11 02:47:56.928665"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 2], ["created_at", "2016-03-11 02:47:56.943176"], ["updated_at", "2016-03-11 02:47:56.943176"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:47:56.957892"], ["updated_at", "2016-03-11 02:47:56.957892"]]  (7.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:47:56.974603"], ["updated_at", "2016-03-11 02:47:56.974603"]]  (11.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:47:56.988637"], ["updated_at", "2016-03-11 02:47:56.988637"]]  (8.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (9.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'things';  (6.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "J37fK55GVLseky1vwFKE"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$MoUSgcmbwfeq.VcxcHDdBOX0YtZI83Fp/xuzFca.AambC/.Pu.Pz."], ["confirmed_at", "2016-03-11 02:47:57.088209"], ["authentication_token", "J37fK55GVLseky1vwFKE"], ["created_at", "2016-03-11 02:47:57.093439"], ["updated_at", "2016-03-11 02:47:57.093439"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:57.109668"], ["updated_at", "2016-03-11 02:47:57.109668"]]  (7.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:57.121911"], ["updated_at", "2016-03-11 02:47:57.121911"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9s3nxm3xZ6VEsV34oS9Z"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$LkOR0Xq9X8iDSq1m4WMH6.vPXoFkK/zhs691YUlTSqHnMS/x4OD7."], ["confirmed_at", "2016-03-11 02:47:57.133834"], ["authentication_token", "9s3nxm3xZ6VEsV34oS9Z"], ["created_at", "2016-03-11 02:47:57.137857"], ["updated_at", "2016-03-11 02:47:57.137857"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 02:47:57.153819"], ["updated_at", "2016-03-11 02:47:57.153819"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:47:57.166373"], ["updated_at", "2016-03-11 02:47:57.166373"]]  (9.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:47:57.179419"], ["updated_at", "2016-03-11 02:47:57.179419"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:47:57.192498"], ["updated_at", "2016-03-11 02:47:57.192498"]]  (9.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (8.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Exi4LnvBtep-d2X8SsWm"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$5L6DqnJt2MfsYcFGu2u9bO4xGaTiAKwCnoaHEKxpVTRjCyiHGpAvy"], ["confirmed_at", "2016-03-11 02:47:57.336470"], ["authentication_token", "Exi4LnvBtep-d2X8SsWm"], ["created_at", "2016-03-11 02:47:57.341532"], ["updated_at", "2016-03-11 02:47:57.341532"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (9.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:47:57.415409"], ["updated_at", "2016-03-11 02:47:57.415409"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 11.5ms | ActiveRecord: 1.6ms)  (24.5ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 7.0ms | ActiveRecord: 1.3ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.4ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6kYp2DgLHa27trdxbckY"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "d13fd2efc29b832beacfae31fea391811ee816428ecc176a16a2e9c39319fa88"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$SJmESedHGLqyJcq24/cI.eI2rVRy2gdcFGDLrY1bi98nPrAx9w.t."], ["authentication_token", "6kYp2DgLHa27trdxbckY"], ["created_at", "2016-03-11 02:47:57.762204"], ["updated_at", "2016-03-11 02:47:57.762204"], ["confirmation_token", "76KER3ypfXj8exy9rkQE"], ["confirmation_sent_at", "2016-03-11 02:47:57.763283"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.3ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.1ms Sent mail to mtdevise@example.com (2.8ms) Date: Fri, 11 Mar 2016 02:47:57 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e231ddbc966_56e88f3241610@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:57.774688"], ["updated_at", "2016-03-11 02:47:57.774688"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:57.789116"], ["updated_at", "2016-03-11 02:47:57.789116"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:47:57.800116"], ["updated_at", "2016-03-11 02:47:57.800796"], ["id", 1]]  (9.1ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:47:57.816002"], ["current_sign_in_at", "2016-03-11 02:47:57.816002"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:47:57.816689"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 76ms (ActiveRecord: 41.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 0.5ms)  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "JRsawbHkZXGGHk6epJ1z"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test15@example.com"], ["encrypted_password", "$2a$04$PgT6jKIPngKfauFAJsFUT.lSDghSWFKoS7rK7MH/NJwB/QXVh/Gxe"], ["confirmed_at", "2016-03-11 02:47:57.919198"], ["authentication_token", "JRsawbHkZXGGHk6epJ1z"], ["created_at", "2016-03-11 02:47:57.922220"], ["updated_at", "2016-03-11 02:47:57.922220"]]  (7.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:57.935329"], ["updated_at", "2016-03-11 02:47:57.935329"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:57.949911"], ["updated_at", "2016-03-11 02:47:57.949911"]]  (7.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:57 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 90ms (Views: 88.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test15@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test15@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 7.6ms | ActiveRecord: 1.5ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 8.8ms | ActiveRecord: 2.1ms)  (12.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7ZtpN8sFhoc1hvirA5Ho"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$vYO9Ag4/GLMQUsOghb9LLuFT4ZE5Hgz2/vkB/ify/cUB96EvSDjIG"], ["confirmed_at", "2016-03-11 02:47:58.314373"], ["authentication_token", "7ZtpN8sFhoc1hvirA5Ho"], ["created_at", "2016-03-11 02:47:58.317560"], ["updated_at", "2016-03-11 02:47:58.317560"]]  (8.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:58.331277"], ["updated_at", "2016-03-11 02:47:58.331277"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:58.344685"], ["updated_at", "2016-03-11 02:47:58.344685"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "AHhJsXoUPuyNinp7HdKb"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$98M1kHE37ssCPnHJ5vklcusYiYN5BjihoQNq6VRrsroja8RbrEi5m"], ["confirmed_at", "2016-03-11 02:47:58.434418"], ["authentication_token", "AHhJsXoUPuyNinp7HdKb"], ["created_at", "2016-03-11 02:47:58.437537"], ["updated_at", "2016-03-11 02:47:58.437537"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:58.451915"], ["updated_at", "2016-03-11 02:47:58.451915"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:58.465307"], ["updated_at", "2016-03-11 02:47:58.465307"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (9.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.2ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "czbiDAVQ6StnBgKGxKs6"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$SdqkYw5Kne/m//5BwfW4AuJpN42T3tiieJkGNaMvBDoYMppz0XEe."], ["confirmed_at", "2016-03-11 02:47:58.642766"], ["authentication_token", "czbiDAVQ6StnBgKGxKs6"], ["created_at", "2016-03-11 02:47:58.646283"], ["updated_at", "2016-03-11 02:47:58.646283"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:58.662573"], ["updated_at", "2016-03-11 02:47:58.662573"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:58.676404"], ["updated_at", "2016-03-11 02:47:58.676404"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (8.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (6.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xkozHbKUjyK2dwzAVXDR"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$sqRBeOKD7yxOdatV8RqXFO29kinVDBbmL7ZLox1pZ6BbpNPzJr.jW"], ["confirmed_at", "2016-03-11 02:47:58.798487"], ["authentication_token", "xkozHbKUjyK2dwzAVXDR"], ["created_at", "2016-03-11 02:47:58.802734"], ["updated_at", "2016-03-11 02:47:58.802734"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:58.818034"], ["updated_at", "2016-03-11 02:47:58.818034"]]  (7.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:58.830571"], ["updated_at", "2016-03-11 02:47:58.830571"]]  (14.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "bzo3V4o_A_ts4cWwUpFG"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$Q4xnTlR3VTPRm0czCzMm0./MohzWHZIxs.mQIFSiiFbYS59/DTcC2"], ["confirmed_at", "2016-03-11 02:47:58.929654"], ["authentication_token", "bzo3V4o_A_ts4cWwUpFG"], ["created_at", "2016-03-11 02:47:58.933168"], ["updated_at", "2016-03-11 02:47:58.933168"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:58.948508"], ["updated_at", "2016-03-11 02:47:58.948508"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:58.962041"], ["updated_at", "2016-03-11 02:47:58.962041"]]  (8.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:58 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms)  (11.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "3VYBNuhpYzz8YUqd83ie"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$hcZL9Omb01zuJpR6aCC4Ue4cZOsL6u.uRJGEQjK0EwrKBOY4BzBJu"], ["confirmed_at", "2016-03-11 02:47:59.051067"], ["authentication_token", "3VYBNuhpYzz8YUqd83ie"], ["created_at", "2016-03-11 02:47:59.054743"], ["updated_at", "2016-03-11 02:47:59.054743"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:59.071662"], ["updated_at", "2016-03-11 02:47:59.071662"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:59.086111"], ["updated_at", "2016-03-11 02:47:59.086111"]]  (7.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "ubdeFojJB5YQEom6pcY1"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$.cRD.emxOpUIzra6WtT67u4csirEa3GDOLdhz/3DkB0zviwpxuBEK"], ["confirmed_at", "2016-03-11 02:47:59.098999"], ["authentication_token", "ubdeFojJB5YQEom6pcY1"], ["created_at", "2016-03-11 02:47:59.102738"], ["updated_at", "2016-03-11 02:47:59.102738"]]  (9.8ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 2], ["created_at", "2016-03-11 02:47:59.119603"], ["updated_at", "2016-03-11 02:47:59.119603"]]  (10.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:47:59.134827"], ["updated_at", "2016-03-11 02:47:59.134827"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:59 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:59 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)  (9.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RkiRoLGwTccodMz1KVZ3"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$Y9oVQy1q.XM95UuSuKkusefHvZYHp5ODniFpfXRoOx1rmstkiP4bS"], ["confirmed_at", "2016-03-11 02:47:59.240634"], ["authentication_token", "RkiRoLGwTccodMz1KVZ3"], ["created_at", "2016-03-11 02:47:59.245737"], ["updated_at", "2016-03-11 02:47:59.245737"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:47:59.265391"], ["updated_at", "2016-03-11 02:47:59.265391"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:47:59.280846"], ["updated_at", "2016-03-11 02:47:59.280846"]]  (9.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:47:59 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:47:59 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (27.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.3ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "rnxBYsRC9LXsSAWfyQYR"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$9PbZyVpawoKz3adsztG1yODlaAFfMqV3a5WMKaoONnMIteuMgrL9a"], ["confirmed_at", "2016-03-11 02:54:15.836967"], ["authentication_token", "rnxBYsRC9LXsSAWfyQYR"], ["created_at", "2016-03-11 02:54:15.933825"], ["updated_at", "2016-03-11 02:54:15.933825"]]  (16.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:15 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (237.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.7ms) Completed 200 OK in 719ms (Views: 688.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.7ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:16.730804"], ["current_sign_in_at", "2016-03-11 02:54:16.730804"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:16.732082"], ["id", 1]]  (15.3ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 70ms (ActiveRecord: 16.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (2.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (15.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 78ms (Views: 28.8ms | ActiveRecord: 3.1ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.3ms)  (12.3ms) DELETE FROM "things";  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:16 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (13.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 21.4ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:17 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "dx1N-dRARwd1NLKsMNya"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "6819a303c67dab474f1009dff3312102fc2c3819ce3efdb9943b1b2f3c54602e"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$7joqGUbFyt/XbLCgwJhc/e14zVwV5WICTCoaetQaEl.h.dmL9SqwS"], ["authentication_token", "dx1N-dRARwd1NLKsMNya"], ["created_at", "2016-03-11 02:54:17.072930"], ["updated_at", "2016-03-11 02:54:17.072930"], ["confirmation_token", "o8MG_Djqzxd2LNhVzxD5"], ["confirmation_sent_at", "2016-03-11 02:54:17.309002"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.9ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 432.7ms Sent mail to mtdevise@example.com (42.3ms) Date: Fri, 11 Mar 2016 02:54:17 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e23359c425d_5b04433242839@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:17.818180"], ["updated_at", "2016-03-11 02:54:17.818180"]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:17.879150"], ["updated_at", "2016-03-11 02:54:17.879150"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:54:17.898399"], ["updated_at", "2016-03-11 02:54:17.899080"], ["id", 1]]  (10.0ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:17.916047"], ["current_sign_in_at", "2016-03-11 02:54:17.916047"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:17.916739"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 874ms (ActiveRecord: 52.0ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:17 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.5ms)  (24.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 10.1ms | ActiveRecord: 1.6ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.5ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 7.7ms | ActiveRecord: 1.6ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 02:54:18.331513"], ["updated_at", "2016-03-11 02:54:18.331513"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.5ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 9.8ms | ActiveRecord: 1.7ms)  (13.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "js2LsTWt8XFx1qv1HLg2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$3lndGxqtmTCSqB6USB94OO3wITHbhJcy4FSANQL0naRTndwbj7/UG"], ["confirmed_at", "2016-03-11 02:54:18.475898"], ["authentication_token", "js2LsTWt8XFx1qv1HLg2"], ["created_at", "2016-03-11 02:54:18.479219"], ["updated_at", "2016-03-11 02:54:18.479219"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:18.496925"], ["updated_at", "2016-03-11 02:54:18.496925"]]  (8.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:18.510863"], ["updated_at", "2016-03-11 02:54:18.510863"]]  (10.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 9.6ms | ActiveRecord: 1.4ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test2@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zeokUVqamnVzPyKKGnqS"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test2@example.com"], ["encrypted_password", "$2a$04$luT2Cfa6lWgxpeD4qD.71uq/MudtWx7RpkOO5aU8n0YRZzvJ6FPNO"], ["confirmed_at", "2016-03-11 02:54:18.714222"], ["authentication_token", "zeokUVqamnVzPyKKGnqS"], ["created_at", "2016-03-11 02:54:18.717930"], ["updated_at", "2016-03-11 02:54:18.717930"]]  (8.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:18.731952"], ["updated_at", "2016-03-11 02:54:18.731952"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:18.749101"], ["updated_at", "2016-03-11 02:54:18.749101"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yT2JoGs9FfDGQYog6iCy"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$dt5QWCNXVOme1ir5B9Poo.1TG.yGWa40gYVqgYwEhSjkdEZz6DKcu"], ["confirmed_at", "2016-03-11 02:54:18.762844"], ["authentication_token", "yT2JoGs9FfDGQYog6iCy"], ["created_at", "2016-03-11 02:54:18.765586"], ["updated_at", "2016-03-11 02:54:18.765586"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 2], ["created_at", "2016-03-11 02:54:18.783670"], ["updated_at", "2016-03-11 02:54:18.783670"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:54:18.800089"], ["updated_at", "2016-03-11 02:54:18.800089"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:54:18.824497"], ["updated_at", "2016-03-11 02:54:18.824497"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:54:18.839122"], ["updated_at", "2016-03-11 02:54:18.839122"]]  (10.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:18.880463"], ["current_sign_in_at", "2016-03-11 02:54:18.880463"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:18.882322"], ["id", 2]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 10.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:54:18 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test3"]] Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.4ms)  (11.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Zypsy_tTngWRRirHXzDs"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$ccIguxU9IcC6txXTrTTvH.G2CP.bdMlVQPNjO72cDZ.kFstybmUgC"], ["confirmed_at", "2016-03-11 02:54:19.014942"], ["authentication_token", "Zypsy_tTngWRRirHXzDs"], ["created_at", "2016-03-11 02:54:19.018405"], ["updated_at", "2016-03-11 02:54:19.018405"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:19.034237"], ["updated_at", "2016-03-11 02:54:19.034237"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:19.047252"], ["updated_at", "2016-03-11 02:54:19.047252"]]  (9.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test6@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "n66z7Hzysc_BxDLP7jN2"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test6@example.com"], ["encrypted_password", "$2a$04$QBhJr30jSdYgSX7BQCzQwu4Ka6pp7SFRh.mZx6t7e3iNX3npD7lvW"], ["confirmed_at", "2016-03-11 02:54:19.060620"], ["authentication_token", "n66z7Hzysc_BxDLP7jN2"], ["created_at", "2016-03-11 02:54:19.063077"], ["updated_at", "2016-03-11 02:54:19.063077"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 2], ["created_at", "2016-03-11 02:54:19.078041"], ["updated_at", "2016-03-11 02:54:19.078041"]]  (8.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:54:19.090203"], ["updated_at", "2016-03-11 02:54:19.090203"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 02:54:19.100253"], ["updated_at", "2016-03-11 02:54:19.100253"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 02:54:19.111776"], ["updated_at", "2016-03-11 02:54:19.111776"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:19.146521"], ["current_sign_in_at", "2016-03-11 02:54:19.146521"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:19.147559"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test4"]] Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wabymQCyj9BeUoQqS6h9"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "29121065e786fa16867e3a130df1cc2b695838bc2c16a8aec0b5c221bb5d835c"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$kt9Kwtd5gAMOy0Irst/cF.BGAw4qB3HXmDmtIIiuzELgdAMiSQS7y"], ["authentication_token", "wabymQCyj9BeUoQqS6h9"], ["created_at", "2016-03-11 02:54:19.301321"], ["updated_at", "2016-03-11 02:54:19.301321"], ["confirmation_token", "o5MkFMmFz-xWxwHbozuY"], ["confirmation_sent_at", "2016-03-11 02:54:19.302303"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.5ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.2ms Sent mail to user@example.com (2.6ms) Date: Fri, 11 Mar 2016 02:54:19 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2335b4bdb1_5b0443324293d@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:19.312944"], ["updated_at", "2016-03-11 02:54:19.312944"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:19.330858"], ["updated_at", "2016-03-11 02:54:19.330858"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 02:54:19.343745"], ["updated_at", "2016-03-11 02:54:19.344625"], ["id", 1]]  (10.8ms) commit transaction Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.7ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (11.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (10.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NRQdyLNGEx_fNwzPJyTn"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$JkkkwwraQeVcUB1sSgnQFOWiU6VsfEkBNR9s5.dbocJRH2apUbF8u"], ["confirmed_at", "2016-03-11 02:54:19.758684"], ["authentication_token", "NRQdyLNGEx_fNwzPJyTn"], ["created_at", "2016-03-11 02:54:19.762812"], ["updated_at", "2016-03-11 02:54:19.762812"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:19.828335"], ["current_sign_in_at", "2016-03-11 02:54:19.828335"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:19.829333"], ["id", 1]]  (10.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:19 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)  (11.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.7ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test8@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NkXsVGyU7FsGpRys6kYN"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test8@example.com"], ["encrypted_password", "$2a$04$QTB0QUs.5yVZ4r1BlrebdOnTZX6gbJff4jA.p1OnNKZqDS/YFtORq"], ["confirmed_at", "2016-03-11 02:54:19.968373"], ["authentication_token", "NkXsVGyU7FsGpRys6kYN"], ["created_at", "2016-03-11 02:54:19.975034"], ["updated_at", "2016-03-11 02:54:19.975034"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:19.992150"], ["updated_at", "2016-03-11 02:54:19.992150"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:20.006348"], ["updated_at", "2016-03-11 02:54:20.006348"]]  (6.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test8@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test8@example.com"]]  (0.4ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:20.048875"], ["current_sign_in_at", "2016-03-11 02:54:20.048875"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:20.050129"], ["id", 1]]  (8.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 9.9ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 0.5ms)  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "A33Mh3xcPxTg6od81RXZ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$mOKyxF/Jtg1R.fL12PyE2OC8awlSNw/rlpJ5FnxuZ5Wg30rAriz1u"], ["confirmed_at", "2016-03-11 02:54:20.273775"], ["authentication_token", "A33Mh3xcPxTg6od81RXZ"], ["created_at", "2016-03-11 02:54:20.279860"], ["updated_at", "2016-03-11 02:54:20.279860"]]  (8.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:20.297581"], ["updated_at", "2016-03-11 02:54:20.297581"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:20.310770"], ["updated_at", "2016-03-11 02:54:20.310770"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test10@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test10@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:20.346737"], ["current_sign_in_at", "2016-03-11 02:54:20.346737"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:20.347740"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.5ms | ActiveRecord: 1.4ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "_kQhiKzRLRSchyZRGdyQ"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$znZuRp2GXnWvfVigpRImaelghziemq2B4VcREp5kKl0zmlzDpN6xi"], ["confirmed_at", "2016-03-11 02:54:20.490357"], ["authentication_token", "_kQhiKzRLRSchyZRGdyQ"], ["created_at", "2016-03-11 02:54:20.493377"], ["updated_at", "2016-03-11 02:54:20.493377"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:20.509818"], ["updated_at", "2016-03-11 02:54:20.509818"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:20.523309"], ["updated_at", "2016-03-11 02:54:20.523309"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (6.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test12@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:20.572023"], ["current_sign_in_at", "2016-03-11 02:54:20.572023"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:20.573248"], ["id", 1]]  (10.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.4ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (2.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.3ms) Completed 200 OK in 19ms (Views: 7.6ms | ActiveRecord: 1.6ms)  (11.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (19.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "NXDLQL26jr2EofXLcRer"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$ugAuLCxtgHnEBGQ/kRaDnudZefRQIx4hDq/GBA/UUN8T4Gj9vWKfe"], ["confirmed_at", "2016-03-11 02:54:20.738104"], ["authentication_token", "NXDLQL26jr2EofXLcRer"], ["created_at", "2016-03-11 02:54:20.742461"], ["updated_at", "2016-03-11 02:54:20.742461"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:20.761055"], ["updated_at", "2016-03-11 02:54:20.761055"]]  (10.9ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:20.777624"], ["updated_at", "2016-03-11 02:54:20.777624"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test14@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test14@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:20.824247"], ["current_sign_in_at", "2016-03-11 02:54:20.824247"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:20.825647"], ["id", 1]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 23ms (ActiveRecord: 11.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.3ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.3ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:20 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test9"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 6.9ms | ActiveRecord: 1.8ms)  (11.4ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.4ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-azXayt3ZFVRhR89dDxU"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$N8L4spmS4zFkPp17hqLFr.Qcg2GSBAm.6E7giiDOw8MxSe7Cio9.G"], ["confirmed_at", "2016-03-11 02:54:20.985580"], ["authentication_token", "-azXayt3ZFVRhR89dDxU"], ["created_at", "2016-03-11 02:54:20.990180"], ["updated_at", "2016-03-11 02:54:20.990180"]]  (8.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:21.004594"], ["updated_at", "2016-03-11 02:54:21.004594"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.018406"], ["updated_at", "2016-03-11 02:54:21.018406"]]  (10.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test16@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test16@example.com"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:21.059725"], ["current_sign_in_at", "2016-03-11 02:54:21.059725"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:21.061043"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.6ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 02:54:21.115412"], ["updated_at", "2016-03-11 02:54:21.115412"]]  (10.1ms) commit transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.133858"], ["updated_at", "2016-03-11 02:54:21.133858"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.6ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 02:54:21.150521"], ["id", 2]]  (10.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 55ms (ActiveRecord: 34.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.4ms)  (10.5ms) DELETE FROM "things";  (1.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test18@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "1ok28kmMmto6W3j9sTiE"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test18@example.com"], ["encrypted_password", "$2a$04$58MHcO2OSFvsq/nupPJ54eRgQVSG1/Wm/nfCtnHDB2Qkwi7/1Woiu"], ["confirmed_at", "2016-03-11 02:54:21.293140"], ["authentication_token", "1ok28kmMmto6W3j9sTiE"], ["created_at", "2016-03-11 02:54:21.297291"], ["updated_at", "2016-03-11 02:54:21.297291"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:21.314607"], ["updated_at", "2016-03-11 02:54:21.314607"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.329650"], ["updated_at", "2016-03-11 02:54:21.329650"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "N8he3CNHU1hqUFzwXLjP"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$RhzB7hy8JDlDkrDrzDqc9.ptBbAIGHY1EleEA5oz6MPEQKg0yQzJC"], ["confirmed_at", "2016-03-11 02:54:21.345534"], ["authentication_token", "N8he3CNHU1hqUFzwXLjP"], ["created_at", "2016-03-11 02:54:21.348807"], ["updated_at", "2016-03-11 02:54:21.348807"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 2], ["created_at", "2016-03-11 02:54:21.366430"], ["updated_at", "2016-03-11 02:54:21.366430"]]  (10.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 02:54:21.382515"], ["updated_at", "2016-03-11 02:54:21.382515"]]  (7.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test11"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test19@example.com"]] Completed 401 Unauthorized in 7ms (ActiveRecord: 1.1ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test11"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (12.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (11.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "SSzyQTE1Wca2C6eGVxze"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$c785326ntvS6SBeKchvLNeuey70Mph4u/Ns7r6KDyq8H8l19tmEG2"], ["confirmed_at", "2016-03-11 02:54:21.530084"], ["authentication_token", "SSzyQTE1Wca2C6eGVxze"], ["created_at", "2016-03-11 02:54:21.533194"], ["updated_at", "2016-03-11 02:54:21.533194"]]  (14.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:21.553546"], ["updated_at", "2016-03-11 02:54:21.553546"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.565414"], ["updated_at", "2016-03-11 02:54:21.565414"]]  (10.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test20@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test20@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:21.610864"], ["current_sign_in_at", "2016-03-11 02:54:21.610864"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:21.612015"], ["id", 1]]  (11.5ms) commit transaction Redirected to http://test13.example.com/ Completed 302 Found in 22ms (ActiveRecord: 12.5ms) Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (10.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "GMztx-ytyijNism2y_po"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$PIIxdCPkNfZY7lczkFXlfe8T3dF7VV8ERagMgKm1WROPJ1yXkgnoy"], ["confirmed_at", "2016-03-11 02:54:21.706255"], ["authentication_token", "GMztx-ytyijNism2y_po"], ["created_at", "2016-03-11 02:54:21.709332"], ["updated_at", "2016-03-11 02:54:21.709332"]]  (11.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:21.726454"], ["updated_at", "2016-03-11 02:54:21.726454"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.740235"], ["updated_at", "2016-03-11 02:54:21.740235"]]  (9.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.2ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "w2xrdbJTshcHdwsiM2xz"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$Im8epA8yif0bs0kAMccNXu.6Qh7subaO6Tp9.CC6Z1.xGlOKRl83q"], ["confirmed_at", "2016-03-11 02:54:21.866942"], ["authentication_token", "w2xrdbJTshcHdwsiM2xz"], ["created_at", "2016-03-11 02:54:21.870395"], ["updated_at", "2016-03-11 02:54:21.870395"]]  (14.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:21.891813"], ["updated_at", "2016-03-11 02:54:21.891813"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:21.906988"], ["updated_at", "2016-03-11 02:54:21.906988"]]  (10.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:21 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test15"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test22@example.com"]] Completed 401 Unauthorized in 7ms (ActiveRecord: 0.8ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (11.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PzXAn4XgRUGzs8LnJujL"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$DtfgrwPTQos5LTKOpcTk8OWXym709hwr7l38ABQ4azzJM9j3oQyea"], ["confirmed_at", "2016-03-11 02:54:22.098119"], ["authentication_token", "PzXAn4XgRUGzs8LnJujL"], ["created_at", "2016-03-11 02:54:22.101396"], ["updated_at", "2016-03-11 02:54:22.101396"]]  (8.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:22.115393"], ["updated_at", "2016-03-11 02:54:22.115393"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:22.129323"], ["updated_at", "2016-03-11 02:54:22.129323"]]  (7.5ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test23@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.2ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test23@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "S38CER2FgiW197TiH8GD"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$EMcGH.sew7HoYGZr.94sLefu4GTPxygjGm3os9rxK9BcStkUi5waK"], ["confirmed_at", "2016-03-11 02:54:22.239370"], ["authentication_token", "S38CER2FgiW197TiH8GD"], ["created_at", "2016-03-11 02:54:22.242285"], ["updated_at", "2016-03-11 02:54:22.242285"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 02:54:22.255910"], ["updated_at", "2016-03-11 02:54:22.255910"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 02:54:22.269564"], ["updated_at", "2016-03-11 02:54:22.269564"]]  (9.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:22 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 02:54:22 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test24@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 02:54:22.303783"], ["current_sign_in_at", "2016-03-11 02:54:22.303783"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 02:54:22.304874"], ["id", 1]]  (11.6ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 21ms (ActiveRecord: 12.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 02:54:22 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.5ms)  (9.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (16.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.4ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (2.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "qHbPQLcSrVHfe-x1WAxw"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$VPSUVxACSLF9pfnLkjL1Pe2Y8dRkWGYOTsg6DjHFrBU/yDbPKaEf6"], ["confirmed_at", "2016-03-11 03:03:39.384020"], ["authentication_token", "qHbPQLcSrVHfe-x1WAxw"], ["created_at", "2016-03-11 03:03:39.479982"], ["updated_at", "2016-03-11 03:03:39.479982"]]  (10.7ms) commit transaction  (0.2ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.5ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:39.521654"], ["updated_at", "2016-03-11 03:03:39.521654"]]  (10.2ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:39.634668"], ["updated_at", "2016-03-11 03:03:39.634668"]]  (14.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:39 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (111.3ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (325.1ms) Completed 500 Internal Server Error in 395ms (ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (12.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "y6s5DxaSzgeN1_KqHmJW"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$c4i5..1dcBCwq1LYKZG0nud6gZRZMidcg1qiY2jGf.cmYdhsF3Zca"], ["confirmed_at", "2016-03-11 03:03:40.158633"], ["authentication_token", "y6s5DxaSzgeN1_KqHmJW"], ["created_at", "2016-03-11 03:03:40.161806"], ["updated_at", "2016-03-11 03:03:40.161806"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:40.179864"], ["updated_at", "2016-03-11 03:03:40.179864"]]  (10.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:40.194486"], ["updated_at", "2016-03-11 03:03:40.194486"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (31.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (32.5ms) Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.3ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zrCfVZfMZkqKsxpTvSz4"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$mvVgp5ddhTUI/yK/CXJehug35rWI8FmA56cNTOB0ocQyqjRIcOrtS"], ["confirmed_at", "2016-03-11 03:03:40.323940"], ["authentication_token", "zrCfVZfMZkqKsxpTvSz4"], ["created_at", "2016-03-11 03:03:40.328771"], ["updated_at", "2016-03-11 03:03:40.328771"]]  (12.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:40.350481"], ["updated_at", "2016-03-11 03:03:40.350481"]]  (10.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:40.368482"], ["updated_at", "2016-03-11 03:03:40.368482"]]  (11.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (32.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (33.0ms) Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.0ms)  (14.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (11.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (13.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "6C14-9sec5XRvMZ2Ukn2"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$TpQPO3yYwAwm82IN8Qx4DeGABktdHPR0MBxIToUKlCzkC/dUq1ZYW"], ["confirmed_at", "2016-03-11 03:03:40.507029"], ["authentication_token", "6C14-9sec5XRvMZ2Ukn2"], ["created_at", "2016-03-11 03:03:40.510361"], ["updated_at", "2016-03-11 03:03:40.510361"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:40.527118"], ["updated_at", "2016-03-11 03:03:40.527118"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:40.542150"], ["updated_at", "2016-03-11 03:03:40.542150"]]  (7.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (36.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (37.1ms) Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (12.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MsCMg79Jmbn3L1BzuPHs"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$bX3enJBQ48Uy14SUTsggKuffblF5Dt0yYpJOYt7gG3GIzfkUXDA.e"], ["confirmed_at", "2016-03-11 03:03:40.711258"], ["authentication_token", "MsCMg79Jmbn3L1BzuPHs"], ["created_at", "2016-03-11 03:03:40.715127"], ["updated_at", "2016-03-11 03:03:40.715127"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:40.731908"], ["updated_at", "2016-03-11 03:03:40.731908"]]  (10.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:40.746812"], ["updated_at", "2016-03-11 03:03:40.746812"]]  (9.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test5"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test5"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (38.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (39.3ms) Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.2ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test10@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "7HVj_6sVqQm8g-f1uPyr"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test10@example.com"], ["encrypted_password", "$2a$04$aK.qkCnORVqOA79d679toOOR.WrPrgjNfXSVg72uf7AzUmlveF4We"], ["confirmed_at", "2016-03-11 03:03:40.907723"], ["authentication_token", "7HVj_6sVqQm8g-f1uPyr"], ["created_at", "2016-03-11 03:03:40.912233"], ["updated_at", "2016-03-11 03:03:40.912233"]]  (11.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:40.930095"], ["updated_at", "2016-03-11 03:03:40.930095"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:40.945723"], ["updated_at", "2016-03-11 03:03:40.945723"]]  (10.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:40 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test6"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test6"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (79.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (79.8ms) Completed 500 Internal Server Error in 83ms (ActiveRecord: 0.2ms)  (11.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "g6cf-t56nnyD_i9Kvyhj"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$L4VIFb4Fu8txgRHH8q/sFeOmCjkTl/d3pPQHbTC3ccfPsrjtqG9sS"], ["confirmed_at", "2016-03-11 03:03:41.127745"], ["authentication_token", "g6cf-t56nnyD_i9Kvyhj"], ["created_at", "2016-03-11 03:03:41.130919"], ["updated_at", "2016-03-11 03:03:41.130919"]]  (10.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:41.146841"], ["updated_at", "2016-03-11 03:03:41.146841"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:41.161231"], ["updated_at", "2016-03-11 03:03:41.161231"]]  (11.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "9XcuPfy85p3KVe21cgSm"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$D7zxQSwtg1DX/TuSRx.W/ur/98I476sF4hp1hlHbuc4/LffR5f9W6"], ["confirmed_at", "2016-03-11 03:03:41.177252"], ["authentication_token", "9XcuPfy85p3KVe21cgSm"], ["created_at", "2016-03-11 03:03:41.180211"], ["updated_at", "2016-03-11 03:03:41.180211"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 2], ["created_at", "2016-03-11 03:03:41.196032"], ["updated_at", "2016-03-11 03:03:41.196032"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:03:41.209971"], ["updated_at", "2016-03-11 03:03:41.209971"]]  (8.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test7"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test7"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (40.3ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (41.1ms) Completed 500 Internal Server Error in 44ms (ActiveRecord: 0.2ms)  (10.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.8ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "WafmMsaXjg2ScTUXYE1E"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$9Mx84bppr7Lrusp//.A4G.s9GW.yFrEVK9KHMmDTH03XpTxq4emHW"], ["confirmed_at", "2016-03-11 03:03:41.353873"], ["authentication_token", "WafmMsaXjg2ScTUXYE1E"], ["created_at", "2016-03-11 03:03:41.357019"], ["updated_at", "2016-03-11 03:03:41.357019"]]  (11.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:41.375182"], ["updated_at", "2016-03-11 03:03:41.375182"]]  (10.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:41.390264"], ["updated_at", "2016-03-11 03:03:41.390264"]]  (8.3ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test9"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test9"]] Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (48.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (48.9ms) Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (11.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (12.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "SFesdUJZdU8-eAmytsL6"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$M34aiDZPeYyLL6M5DOg7KevrEzH60ohoA.rtN33TzjAjhY7bdrwvu"], ["confirmed_at", "2016-03-11 03:03:41.587695"], ["authentication_token", "SFesdUJZdU8-eAmytsL6"], ["created_at", "2016-03-11 03:03:41.590669"], ["updated_at", "2016-03-11 03:03:41.590669"]]  (10.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:41.607972"], ["updated_at", "2016-03-11 03:03:41.607972"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:41.622570"], ["updated_at", "2016-03-11 03:03:41.622570"]]  (10.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (38.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (39.0ms) Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.5ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.6ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.4ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "wLaDuf4CwMPBsssFqH2_"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$KCmTKbKD7ibIuYKIBmc5o.I.qxibgwTFK2ZSMPOkp/zg33hB7ai8G"], ["confirmed_at", "2016-03-11 03:03:41.764741"], ["authentication_token", "wLaDuf4CwMPBsssFqH2_"], ["created_at", "2016-03-11 03:03:41.769307"], ["updated_at", "2016-03-11 03:03:41.769307"]]  (10.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:41.786956"], ["updated_at", "2016-03-11 03:03:41.786956"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:41.801168"], ["updated_at", "2016-03-11 03:03:41.801168"]]  (11.2ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (63.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (64.5ms) Completed 500 Internal Server Error in 67ms (ActiveRecord: 0.0ms)  (11.0ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.1ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.8ms) DELETE FROM "mtdevise_accounts";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:03:41 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:42 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (40.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (41.3ms) Completed 500 Internal Server Error in 43ms (ActiveRecord: 0.0ms)  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "pR6AK_NxkGxR6hycatgd"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$YV52NTmTKmmnsGzwUrZtmudDwuTHXlmsZ9AlMX6K4ZfPUkYelt6tC"], ["confirmed_at", "2016-03-11 03:03:42.092544"], ["authentication_token", "pR6AK_NxkGxR6hycatgd"], ["created_at", "2016-03-11 03:03:42.095447"], ["updated_at", "2016-03-11 03:03:42.095447"]]  (9.5ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:42.110239"], ["updated_at", "2016-03-11 03:03:42.110239"]]  (6.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:42.120986"], ["updated_at", "2016-03-11 03:03:42.120986"]]  (11.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:42 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (30.2ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (31.0ms) Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.0ms)  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (12.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "sMAVHtR2q8sVQH2DxXvd"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "2dca7d179a3d296f736f208072679c224cc0401c77252fe8de957b846a10b195"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$1YhoB6KjSicO6.sCCCg8begE7jiYZqKQir3HOGNjiaMP6IYrzgkYm"], ["authentication_token", "sMAVHtR2q8sVQH2DxXvd"], ["created_at", "2016-03-11 03:03:42.367175"], ["updated_at", "2016-03-11 03:03:42.367175"], ["confirmation_token", "y4xSStBG8fyeExYwPKqW"], ["confirmation_sent_at", "2016-03-11 03:03:42.582983"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 352.8ms Sent mail to user@example.com (53.0ms) Date: Fri, 11 Mar 2016 03:03:42 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e2358eeeb07_5cc116733486369@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:43.014486"], ["updated_at", "2016-03-11 03:03:43.014486"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:43.037900"], ["updated_at", "2016-03-11 03:03:43.037900"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 03:03:43.047656"], ["updated_at", "2016-03-11 03:03:43.048282"], ["id", 1]]  (8.0ms) commit transaction Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (8.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (6.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "W5k6QfozoLRDd8UQTqnF"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$WBpxlucSPHM2E355pn0Gk.k95jRN3vitCvbMSn.Mc5UEp5Sxv464y"], ["confirmed_at", "2016-03-11 03:03:43.162795"], ["authentication_token", "W5k6QfozoLRDd8UQTqnF"], ["created_at", "2016-03-11 03:03:43.166463"], ["updated_at", "2016-03-11 03:03:43.166463"]]  (10.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (35.4ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (36.4ms) Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.0ms)  (11.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "PycM5CMsTaUSgn9oqxWY"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$S6cI/9Tfr.La/l33oVvrz.WKfpR1nCLcL8v/c2yF3bGoG.mdQNdna"], ["confirmed_at", "2016-03-11 03:03:43.278308"], ["authentication_token", "PycM5CMsTaUSgn9oqxWY"], ["created_at", "2016-03-11 03:03:43.281124"], ["updated_at", "2016-03-11 03:03:43.281124"]]  (11.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:43.297189"], ["updated_at", "2016-03-11 03:03:43.297189"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:43.309950"], ["updated_at", "2016-03-11 03:03:43.309950"]]  (8.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (1.1ms) Completed 200 OK in 342ms (Views: 341.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (11.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (32.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 45ms (Views: 42.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 9.3ms | ActiveRecord: 1.4ms)  (14.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 03:03:43.921180"], ["updated_at", "2016-03-11 03:03:43.921180"]]  (9.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:03:43 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 8.3ms | ActiveRecord: 1.5ms)  (11.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 83ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.9ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.7ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 8.4ms | ActiveRecord: 1.4ms)  (12.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.0ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "pM-_RcS15Fzf2McMUzWz"]] Mtdevise::User Load (0.0ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "727dad7c33a7760dcb1c1e198f94e218a66c361dbeba5ce7e80a3845acb4ee5d"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$gN1PG1RPxLIpFjox1ssKcO0P7oL52NGBbo3K1JaxjB1FhvarICr4m"], ["authentication_token", "pM-_RcS15Fzf2McMUzWz"], ["created_at", "2016-03-11 03:03:44.273503"], ["updated_at", "2016-03-11 03:03:44.273503"], ["confirmation_token", "QmAxyxMPq2D_cWQL9DPE"], ["confirmation_sent_at", "2016-03-11 03:03:44.274511"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.6ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.3ms Sent mail to mtdevise@example.com (2.7ms) Date: Fri, 11 Mar 2016 03:03:44 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e23590451b5_5cc1167334864e0@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:44.285189"], ["updated_at", "2016-03-11 03:03:44.285189"]]  (11.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:44.301268"], ["updated_at", "2016-03-11 03:03:44.301268"]]  (8.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 03:03:44.311828"], ["updated_at", "2016-03-11 03:03:44.312487"], ["id", 1]]  (8.8ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:03:44.328332"], ["current_sign_in_at", "2016-03-11 03:03:44.328332"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:03:44.329048"], ["id", 1]]  (9.0ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 77ms (ActiveRecord: 41.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Mtdevise::Account Load (0.4ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.4ms)  (8.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.4ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.8ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (4.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 8.0ms | ActiveRecord: 1.6ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.4ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test20@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "jd6xMV58oqt-rQZ6HLeY"]] SQL (0.7ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test20@example.com"], ["encrypted_password", "$2a$04$f3tTLkxsvvBtIgzKdgvOxejxgKXdmZi8D8rcOCXyCEFUk3bfY.6nu"], ["confirmed_at", "2016-03-11 03:03:44.570416"], ["authentication_token", "jd6xMV58oqt-rQZ6HLeY"], ["created_at", "2016-03-11 03:03:44.574251"], ["updated_at", "2016-03-11 03:03:44.574251"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:44.589920"], ["updated_at", "2016-03-11 03:03:44.589920"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:44.601913"], ["updated_at", "2016-03-11 03:03:44.601913"]]  (7.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "fcMtPL-syxBXEe6tFxeG"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$r0LhTiMC1aB2ZwyCxGamaONm7Y8mup2siCf/P6B61lqRHenlKZQi2"], ["confirmed_at", "2016-03-11 03:03:44.613694"], ["authentication_token", "fcMtPL-syxBXEe6tFxeG"], ["created_at", "2016-03-11 03:03:44.616298"], ["updated_at", "2016-03-11 03:03:44.616298"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 2], ["created_at", "2016-03-11 03:03:44.631074"], ["updated_at", "2016-03-11 03:03:44.631074"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:03:44.644135"], ["updated_at", "2016-03-11 03:03:44.644135"]]  (9.5ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 03:03:44.662376"], ["updated_at", "2016-03-11 03:03:44.662376"]]  (9.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 03:03:44.674625"], ["updated_at", "2016-03-11 03:03:44.674625"]]  (7.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (37.1ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (38.0ms) Completed 500 Internal Server Error in 40ms (ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'things';  (10.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Q_r_r38R1dpxbrrGyznU"]] SQL (0.5ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$N.0wyusgkTlGEeGc62XdB.50FqnPhWO0wwA31.ktVa1xDcYWYVLJe"], ["confirmed_at", "2016-03-11 03:03:44.811800"], ["authentication_token", "Q_r_r38R1dpxbrrGyznU"], ["created_at", "2016-03-11 03:03:44.815964"], ["updated_at", "2016-03-11 03:03:44.815964"]]  (11.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 1], ["created_at", "2016-03-11 03:03:44.835304"], ["updated_at", "2016-03-11 03:03:44.835304"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:03:44.849698"], ["updated_at", "2016-03-11 03:03:44.849698"]]  (7.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xyCNCnV9MGcggDN5orSf"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$OHlI18E986.NFZdsLL.hF.k5jFtHKH7M/IoUSI0TJF8LnUAwg.lCG"], ["confirmed_at", "2016-03-11 03:03:44.861499"], ["authentication_token", "xyCNCnV9MGcggDN5orSf"], ["created_at", "2016-03-11 03:03:44.864469"], ["updated_at", "2016-03-11 03:03:44.864469"]]  (9.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 2], ["created_at", "2016-03-11 03:03:44.879111"], ["updated_at", "2016-03-11 03:03:44.879111"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:03:44.892237"], ["updated_at", "2016-03-11 03:03:44.892237"]]  (9.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 03:03:44.904457"], ["updated_at", "2016-03-11 03:03:44.904457"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 03:03:44.916482"], ["updated_at", "2016-03-11 03:03:44.916482"]]  (9.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:44 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (37.0ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (37.7ms) Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.8ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (11.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.6ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (11.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.3ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (60.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (61.8ms) Completed 500 Internal Server Error in 63ms (ActiveRecord: 0.0ms)  (12.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.1ms) Rendered /usr/local/rvm/gems/ruby-2.1.5@mtdevise/gems/phcnotifi-0.2.5/app/views/layouts/phcnotifi/components/_notifications.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (10.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Eug_yv_ZEbpCMDZ_afCz"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$8Q3F3ZcjemXeHt8oyma.e.fpBn88m4.i8iLmMar6UNh9s.pBUymUW"], ["confirmed_at", "2016-03-11 03:03:45.357650"], ["authentication_token", "Eug_yv_ZEbpCMDZ_afCz"], ["created_at", "2016-03-11 03:03:45.362996"], ["updated_at", "2016-03-11 03:03:45.362996"]]  (10.0ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:03:45 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/phcnotifi/components/_validations.html.erb (36.9ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (37.7ms) Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.0ms)  (13.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (12.6ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (13.5ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (10.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test1@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Fy6AHNQV4EDs3FVzbwcV"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test1@example.com"], ["encrypted_password", "$2a$04$az..6D5G42P9HCCq48JQy..CIb0s8VWQ7qz.WCzBlkPH/q1yfusI."], ["confirmed_at", "2016-03-11 03:18:48.473143"], ["authentication_token", "Fy6AHNQV4EDs3FVzbwcV"], ["created_at", "2016-03-11 03:18:48.565819"], ["updated_at", "2016-03-11 03:18:48.565819"]]  (15.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test1' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #1' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test1' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #1"], ["firstname", "Test1"], ["lastname", "Test1"], ["username", "test1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:48.605765"], ["updated_at", "2016-03-11 03:18:48.605765"]]  (16.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:48.701886"], ["updated_at", "2016-03-11 03:18:48.701886"]]  (11.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:48 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (249.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.9ms) Completed 200 OK in 9070ms (Views: 9040.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:57 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test1@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test1@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:57.911803"], ["current_sign_in_at", "2016-03-11 03:18:57.911803"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:57.912887"], ["id", 1]]  (13.0ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 64ms (ActiveRecord: 14.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:57 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.5ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (11.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 30.2ms | ActiveRecord: 1.0ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (9.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.4ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["created_at", "2016-03-11 03:18:58.062152"], ["updated_at", "2016-03-11 03:18:58.062152"]]  (12.0ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 1], ["created_at", "2016-03-11 03:18:58.082031"], ["updated_at", "2016-03-11 03:18:58.082031"]]  (7.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 2 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 2) LIMIT 1 SQL (0.2ms) UPDATE "mtdevise_accounts" SET "owner_id" = ?, "updated_at" = ? WHERE "mtdevise_accounts"."id" = ? [["owner_id", 1], ["updated_at", "2016-03-11 03:18:58.094917"], ["id", 2]]  (9.8ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 55ms (ActiveRecord: 31.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (2.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.5ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test3@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "-NcQpuSKkXEyTwczuTBC"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test3@example.com"], ["encrypted_password", "$2a$04$dWMusSZyktl76CyGmIzYeukUSKYY5PKTuIRyQaP2ez6l9sR00M4GG"], ["confirmed_at", "2016-03-11 03:18:58.200412"], ["authentication_token", "-NcQpuSKkXEyTwczuTBC"], ["created_at", "2016-03-11 03:18:58.203683"], ["updated_at", "2016-03-11 03:18:58.203683"]]  (9.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #2' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test2' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #2"], ["firstname", "Test2"], ["lastname", "Test2"], ["username", "test2"], ["subdomain", "test2"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:58.221834"], ["updated_at", "2016-03-11 03:18:58.221834"]]  (9.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:58.236911"], ["updated_at", "2016-03-11 03:18:58.236911"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test3@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test3@example.com"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:58.279601"], ["current_sign_in_at", "2016-03-11 03:18:58.279601"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:58.280800"], ["id", 1]]  (10.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.7ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"test2"}, "commit"=>"Create Account"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test2' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (1.2ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.2ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 13.5ms | ActiveRecord: 1.6ms)  (10.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test5@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "rYvLyJvGyaVTVnE5bhhi"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test5@example.com"], ["encrypted_password", "$2a$04$o8fT.ZhA04vAirEDE.KLv.jVhu8kkABNmb0SXgOh4.gpY3SxlPGjK"], ["confirmed_at", "2016-03-11 03:18:58.432084"], ["authentication_token", "rYvLyJvGyaVTVnE5bhhi"], ["created_at", "2016-03-11 03:18:58.435579"], ["updated_at", "2016-03-11 03:18:58.435579"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test3' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #3' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test3' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #3"], ["firstname", "Test3"], ["lastname", "Test3"], ["username", "test3"], ["subdomain", "test3"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:58.452691"], ["updated_at", "2016-03-11 03:18:58.452691"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:58.465921"], ["updated_at", "2016-03-11 03:18:58.465921"]]  (7.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test5@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test5@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:58.502263"], ["current_sign_in_at", "2016-03-11 03:18:58.502263"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:58.503679"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.6ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.4ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>"admin"}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 6.9ms | ActiveRecord: 1.3ms)  (10.5ms) DELETE FROM "things";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test7@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zyeGGN8nA6aNJjakqkgM"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test7@example.com"], ["encrypted_password", "$2a$04$YofyyABxp8xLfM3elYfBaeiTV9.yyvo7UwR69EnL7ZI0iCUtvihOS"], ["confirmed_at", "2016-03-11 03:18:58.642982"], ["authentication_token", "zyeGGN8nA6aNJjakqkgM"], ["created_at", "2016-03-11 03:18:58.646015"], ["updated_at", "2016-03-11 03:18:58.646015"]]  (7.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test4' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #4' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test4' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #4"], ["firstname", "Test4"], ["lastname", "Test4"], ["username", "test4"], ["subdomain", "test4"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:58.659194"], ["updated_at", "2016-03-11 03:18:58.659194"]]  (9.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:58.672600"], ["updated_at", "2016-03-11 03:18:58.672600"]]  (9.1ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test7@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test7@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:58.715209"], ["current_sign_in_at", "2016-03-11 03:18:58.715209"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:58.716545"], ["id", 1]]  (10.9ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 11.5ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/accounts/new" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (3.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.2ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "subdomain"=>""}, "commit"=>"Create Account"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (3.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 6.7ms | ActiveRecord: 1.5ms)  (10.8ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.2ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.0ms) DELETE FROM "mtdevise_users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test9@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xvxat_dyXHbWWapyyPah"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test9@example.com"], ["encrypted_password", "$2a$04$kDxDm19Mb.UjOWzJeQcWYu8QaGAVWFfSe60Fhqp7s65ptlBvc8D1e"], ["confirmed_at", "2016-03-11 03:18:58.903811"], ["authentication_token", "xvxat_dyXHbWWapyyPah"], ["created_at", "2016-03-11 03:18:58.907011"], ["updated_at", "2016-03-11 03:18:58.907011"]]  (9.4ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test5' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #5' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test5' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #5"], ["firstname", "Test5"], ["lastname", "Test5"], ["username", "test5"], ["subdomain", "test5"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:58.922403"], ["updated_at", "2016-03-11 03:18:58.922403"]]  (8.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:58.935118"], ["updated_at", "2016-03-11 03:18:58.935118"]]  (9.4ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test9@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test9@example.com"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:58.974140"], ["current_sign_in_at", "2016-03-11 03:18:58.974140"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:58.975177"], ["id", 1]]  (11.2ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 22ms (ActiveRecord: 12.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:58 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (9.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.2ms) DELETE FROM "mtdevise_users";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test11@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "c-BQL6SS99UHtycFydgz"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test11@example.com"], ["encrypted_password", "$2a$04$V1UqMR7eAnGolDWKeziqk.ZabJTNAuP0oTogqpsTpjEXWw.GXL.D6"], ["confirmed_at", "2016-03-11 03:18:59.072446"], ["authentication_token", "c-BQL6SS99UHtycFydgz"], ["created_at", "2016-03-11 03:18:59.075986"], ["updated_at", "2016-03-11 03:18:59.075986"]]  (12.0ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test6' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #6' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test6' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #6"], ["firstname", "Test6"], ["lastname", "Test6"], ["username", "test6"], ["subdomain", "test6"], ["owner_id", 1], ["created_at", "2016-03-11 03:18:59.094004"], ["updated_at", "2016-03-11 03:18:59.094004"]]  (7.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:18:59.105581"], ["updated_at", "2016-03-11 03:18:59.105581"]]  (10.6ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test11@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.3ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test11@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (11.3ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.9ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.8ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "Xz_FLzw8LNYFEtDdy2j4"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$gsyxUvIYDjGLhawd/fVda.AcqlMipVfLsn95idHbZ7AngCfGWdE8i"], ["confirmed_at", "2016-03-11 03:18:59.266986"], ["authentication_token", "Xz_FLzw8LNYFEtDdy2j4"], ["created_at", "2016-03-11 03:18:59.269848"], ["updated_at", "2016-03-11 03:18:59.269848"]]  (8.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:18:59.302218"], ["current_sign_in_at", "2016-03-11 03:18:59.302218"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:18:59.303028"], ["id", 1]]  (9.5ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::AccountsController#new as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_if_coming_form_sign_up rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (11.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.6ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.8ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (1.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (2.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (10.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 14.3ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:18:59 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "zybsEae-yMWZwVGTRWXS"]] Mtdevise::User Load (0.3ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "72256f37d689de817a7131beb9d514457f57158e3f739ac1c382f6baf9b0d690"]] SQL (0.6ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "mtdevise@example.com"], ["encrypted_password", "$2a$04$AGmfWNqyyYOFo7.gy8AIH.3ZI28mH932EzHPnj4uof9RN.4fVR2mm"], ["authentication_token", "zybsEae-yMWZwVGTRWXS"], ["created_at", "2016-03-11 03:18:59.479349"], ["updated_at", "2016-03-11 03:18:59.479349"], ["confirmation_token", "yksSHxtKo92FBDWxqjiM"], ["confirmation_sent_at", "2016-03-11 03:18:59.693857"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (4.2ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 451.0ms Sent mail to mtdevise@example.com (41.7ms) Date: Fri, 11 Mar 2016 03:19:00 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: mtdevise@example.com Message-ID: <56e23924313e7_63412533249441f@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome mtdevise@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:00.219366"], ["updated_at", "2016-03-11 03:19:00.219366"]]  (16.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:00.241777"], ["updated_at", "2016-03-11 03:19:00.241777"]]  (8.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 03:19:00.251817"], ["updated_at", "2016-03-11 03:19:00.252561"], ["id", 1]]  (9.6ms) commit transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."subdomain" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."id" != 1 AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."username" = 'test' AND "mtdevise_accounts"."id" != 1) LIMIT 1  (0.1ms) begin transaction SQL (0.7ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:00.269596"], ["current_sign_in_at", "2016-03-11 03:19:00.269596"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:00.270255"], ["id", 1]]  (9.7ms) commit transaction Redirected to http://test.example.com/ Completed 302 Found in 815ms (ActiveRecord: 48.2ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (1.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 15.5ms | ActiveRecord: 0.5ms)  (12.2ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (10.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("subdomain", "name", "firstname", "lastname", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["subdomain", "test"], ["name", "Test"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["created_at", "2016-03-11 03:19:00.396133"], ["updated_at", "2016-03-11 03:19:00.396133"]]  (9.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"test"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (2.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (7.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 10.2ms | ActiveRecord: 1.7ms)  (10.7ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>""}, "commit"=>"Create Account"}  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = '' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 9.0ms | ActiveRecord: 1.6ms)  (12.2ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.6ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.5ms) DELETE FROM "mtdevise_members";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "hn2K9WWdf_qsYr_qzYSn"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test12@example.com"], ["encrypted_password", "$2a$04$JQkS2TJVn5.CBlwQBRFelOmVjf/K0Ot2htwxgS7kLF0x9MdWWL.i6"], ["confirmed_at", "2016-03-11 03:19:00.648711"], ["authentication_token", "hn2K9WWdf_qsYr_qzYSn"], ["created_at", "2016-03-11 03:19:00.651898"], ["updated_at", "2016-03-11 03:19:00.651898"]]  (10.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test7' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #7' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test7' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #7"], ["firstname", "Test7"], ["lastname", "Test7"], ["username", "test7"], ["subdomain", "test7"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:00.667854"], ["updated_at", "2016-03-11 03:19:00.667854"]]  (9.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:00.681533"], ["updated_at", "2016-03-11 03:19:00.681533"]]  (9.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.3ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (5.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"another name", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"test12@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"anothersubdomain"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test12@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'anothersubdomain' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'another name' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (6.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 10.1ms | ActiveRecord: 1.8ms)  (10.6ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.5ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/accounts" for 127.0.0.1 at 2016-03-11 03:19:00 +0000 Processing by Mtdevise::AccountsController#create as HTML Parameters: {"utf8"=>"✓", "account"=>{"name"=>"Test", "firstname"=>"Test", "lastname"=>"Test", "username"=>"Test", "owner_attributes"=>{"email"=>"mtdevise@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "subdomain"=>"admin"}, "commit"=>"Create Account"}  (0.2ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) rollback transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'mtdevise@example.com' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'admin' LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1 Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.9ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (1.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/accounts (5.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 8.4ms | ActiveRecord: 1.7ms)  (10.4ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.0ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.7ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test13@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "xTHoQ8-v7srS6_xaNBug"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test13@example.com"], ["encrypted_password", "$2a$04$9y6L5PiBR1mIul8./ylWoekcJu6OLpM84YhUXOVBcg1Y0jLzQbSW6"], ["confirmed_at", "2016-03-11 03:19:00.980082"], ["authentication_token", "xTHoQ8-v7srS6_xaNBug"], ["created_at", "2016-03-11 03:19:00.983236"], ["updated_at", "2016-03-11 03:19:00.983236"]]  (14.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test8' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #8' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test8' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #8"], ["firstname", "Test8"], ["lastname", "Test8"], ["username", "test8"], ["subdomain", "test8"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:01.003240"], ["updated_at", "2016-03-11 03:19:01.003240"]]  (9.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:01.016935"], ["updated_at", "2016-03-11 03:19:01.016935"]]  (9.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test14@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "DGzScKhEcUWc1aSXmHJv"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test14@example.com"], ["encrypted_password", "$2a$04$06D.mV1WC9Y.6bnT6vDOj.ne24lhIP9pZSdn97xhKSb9x6U.WPHpm"], ["confirmed_at", "2016-03-11 03:19:01.030345"], ["authentication_token", "DGzScKhEcUWc1aSXmHJv"], ["created_at", "2016-03-11 03:19:01.033133"], ["updated_at", "2016-03-11 03:19:01.033133"]]  (11.2ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test9' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #9' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test9' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #9"], ["firstname", "Test9"], ["lastname", "Test9"], ["username", "test9"], ["subdomain", "test9"], ["owner_id", 2], ["created_at", "2016-03-11 03:19:01.050747"], ["updated_at", "2016-03-11 03:19:01.050747"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:19:01.065158"], ["updated_at", "2016-03-11 03:19:01.065158"]]  (11.4ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 03:19:01.088544"], ["updated_at", "2016-03-11 03:19:01.088544"]]  (7.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 03:19:01.100067"], ["updated_at", "2016-03-11 03:19:01.100067"]]  (9.3ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test13@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test13@example.com"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:01.137916"], ["current_sign_in_at", "2016-03-11 03:19:01.137916"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:01.139142"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test8"]] Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 1]] Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.3ms)  (11.6ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test16@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "EZyDq_XWFq9TEJGvZKyp"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test16@example.com"], ["encrypted_password", "$2a$04$BG4TkMZVdyZhaul3a1bMZuigBWYe7vUpjnnAQBAnzLQMgJvAdg0Dy"], ["confirmed_at", "2016-03-11 03:19:01.272151"], ["authentication_token", "EZyDq_XWFq9TEJGvZKyp"], ["created_at", "2016-03-11 03:19:01.275832"], ["updated_at", "2016-03-11 03:19:01.275832"]]  (9.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test10' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #10' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test10' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #10"], ["firstname", "Test10"], ["lastname", "Test10"], ["username", "test10"], ["subdomain", "test10"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:01.291322"], ["updated_at", "2016-03-11 03:19:01.291322"]]  (9.5ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:01.305107"], ["updated_at", "2016-03-11 03:19:01.305107"]]  (8.9ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test17@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "BJBZ2ps383TtpGMBMovw"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test17@example.com"], ["encrypted_password", "$2a$04$vIqVRLJCJovKnIg/SO2cmetzBpAvOdVT1j6sGYzKqDHL6xXtlom3C"], ["confirmed_at", "2016-03-11 03:19:01.317788"], ["authentication_token", "BJBZ2ps383TtpGMBMovw"], ["created_at", "2016-03-11 03:19:01.320617"], ["updated_at", "2016-03-11 03:19:01.320617"]]  (8.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test11' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #11' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test11' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #11"], ["firstname", "Test11"], ["lastname", "Test11"], ["username", "test11"], ["subdomain", "test11"], ["owner_id", 2], ["created_at", "2016-03-11 03:19:01.334847"], ["updated_at", "2016-03-11 03:19:01.334847"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:19:01.349130"], ["updated_at", "2016-03-11 03:19:01.349130"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["name", "Account A's Thing"], ["created_at", "2016-03-11 03:19:01.360877"], ["updated_at", "2016-03-11 03:19:01.360877"]]  (9.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "things" ("account_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["name", "Account B's Thing"], ["created_at", "2016-03-11 03:19:01.372541"], ["updated_at", "2016-03-11 03:19:01.372541"]]  (8.7ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test17@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test17@example.com"]]  (0.3ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:01.409303"], ["current_sign_in_at", "2016-03-11 03:19:01.409303"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:01.410588"], ["id", 2]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 11.0ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 2]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 2]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started GET "/things" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test11"]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."account_id" = ? [["account_id", 2]] Rendered things/index.html.erb within layouts/application (0.8ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (9.9ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.3ms) DELETE FROM sqlite_sequence where name = 'things';  (8.7ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (6.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.1ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "nonexisting"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "nonexisting"]] Redirected to http://example.com/ Filter chain halted as :check_subdomain rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (9.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (11.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.3ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (9.8ms) DELETE FROM "things";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.0ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (6.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Rendered /home/ubuntu/workspace/app/views/mtdevise/welcome/index.html.erb within layouts/mtdevise/welcome (0.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/sign_up" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::AccountsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/account/users/_form.html.erb (0.8ms) Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/new.html.erb within layouts/mtdevise/signup (4.4ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (10.1ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (11.1ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'orbanbotond@gmail.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "MR6zVbfU-zcyvXzUs8kx"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "orbanbotond@gmail.com"], ["encrypted_password", "$2a$04$3oxm/JB/pFzNACOuzShIDusIOAC/2g835JL2bKI/ag7v5z0Rc6/pq"], ["confirmed_at", "2016-03-11 03:19:01.727108"], ["authentication_token", "MR6zVbfU-zcyvXzUs8kx"], ["created_at", "2016-03-11 03:19:01.730336"], ["updated_at", "2016-03-11 03:19:01.730336"]]  (9.9ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"orbanbotond@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "orbanbotond@gmail.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:01.766634"], ["current_sign_in_at", "2016-03-11 03:19:01.766634"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:01.767730"], ["id", 1]]  (10.1ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 19ms (ActiveRecord: 10.8ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.3ms) Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::WelcomeController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Redirected to http://example.com/accounts Filter chain halted as :redirect_logged_in_users_to_account_page rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.2ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:01 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (0.8ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (9.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.2ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.9ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (7.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.4ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (9.2ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (6.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.2ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'user@example.com' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account' AND "mtdevise_accounts"."owner_id" IS NULL) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "8hD55M8FjtEKxeJ3yWwC"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."confirmation_token" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["confirmation_token", "2445bfd87ec7a985407d2979f17f39f0428e3f183d25031e8c15f0279f224e2b"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "authentication_token", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["email", "user@example.com"], ["encrypted_password", "$2a$04$GzdSnYNaDnLakGZ0CuU7AeWqS9UicxG4WdWOCKUHIn5Zca1NF2wqq"], ["authentication_token", "8hD55M8FjtEKxeJ3yWwC"], ["created_at", "2016-03-11 03:19:01.980221"], ["updated_at", "2016-03-11 03:19:01.980221"], ["confirmation_token", "oYU8EiyxyL-wDWLS2XRx"], ["confirmation_sent_at", "2016-03-11 03:19:01.981203"]] Rendered /home/ubuntu/workspace/app/views/devise/mailer/confirmation_instructions.html.erb (3.4ms) Devise::Mailer#confirmation_instructions: processed outbound mail in 5.4ms Sent mail to user@example.com (3.2ms) Date: Fri, 11 Mar 2016 03:19:01 +0000 From: multi-tenancy@phcnetworks.net Reply-To: multi-tenancy@phcnetworks.net To: user@example.com Message-ID: <56e23925f1afe_634125332494555@bradpotts-dev-mtdevise2-2712226.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome user@example.com!

You can confirm your account through the link below:

Confirm my account

SQL (0.1ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account"], ["firstname", "Test"], ["lastname", "Test"], ["username", "test"], ["subdomain", "test"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:01.992298"], ["updated_at", "2016-03-11 03:19:01.992298"]]  (10.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:02.006661"], ["updated_at", "2016-03-11 03:19:02.006661"]]  (8.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "mtdevise_users" SET "confirmed_at" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["confirmed_at", "2016-03-11 03:19:02.016374"], ["updated_at", "2016-03-11 03:19:02.016916"], ["id", 1]]  (10.8ms) commit transaction Mtdevise::User Load (0.5ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["account_id", 1]]  (9.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (10.9ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.9ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.6ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (8.1ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.5ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.2ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (7.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test19@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "AXyMVZZyzrnsRZ-QogNq"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test19@example.com"], ["encrypted_password", "$2a$04$7/HEsa1FAwOaE1uGxppbNecG44YINUuBCQHe9wm4EH55ha/kZyZVm"], ["confirmed_at", "2016-03-11 03:19:02.139659"], ["authentication_token", "AXyMVZZyzrnsRZ-QogNq"], ["created_at", "2016-03-11 03:19:02.142729"], ["updated_at", "2016-03-11 03:19:02.142729"]]  (9.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test12' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #12' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test12' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #12"], ["firstname", "Test12"], ["lastname", "Test12"], ["username", "test12"], ["subdomain", "test12"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:02.158364"], ["updated_at", "2016-03-11 03:19:02.158364"]]  (7.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:02.169361"], ["updated_at", "2016-03-11 03:19:02.169361"]]  (10.8ms) commit transaction Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test19@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."email" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["email", "test19@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:02.224747"], ["current_sign_in_at", "2016-03-11 03:19:02.224747"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:02.225839"], ["id", 1]]  (10.4ms) commit transaction Redirected to http://example.com/accounts Completed 302 Found in 20ms (ActiveRecord: 11.1ms) Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."owner_id" = ? [["owner_id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/accounts/index.html.erb within layouts/mtdevise/accountsindex (1.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms)  (9.3ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (7.7ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.1ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (8.9ms) DELETE FROM "mtdevise_members";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members'; Started GET "/accounts" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Processing by Mtdevise::AccountsController#index as HTML Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Processing by Devise::SessionsController#new as HTML Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.0ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.7ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (7.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (1.5ms) Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.0ms)  (10.9ms) DELETE FROM "things";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'things';  (10.6ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (8.0ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.8ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (7.4ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.3ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.9ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.3ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test21@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "yWxWh7PBtFyfXV_Jz76w"]] SQL (0.2ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test21@example.com"], ["encrypted_password", "$2a$04$3ezWE9pcvHQwhuEqANkeaOLZAVPrxzSN9wtyzEL4TEYWOMI5r8uJy"], ["confirmed_at", "2016-03-11 03:19:02.443389"], ["authentication_token", "yWxWh7PBtFyfXV_Jz76w"], ["created_at", "2016-03-11 03:19:02.446509"], ["updated_at", "2016-03-11 03:19:02.446509"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test13' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #13' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test13' LIMIT 1 SQL (0.2ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #13"], ["firstname", "Test13"], ["lastname", "Test13"], ["username", "test13"], ["subdomain", "test13"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:02.462286"], ["updated_at", "2016-03-11 03:19:02.462286"]]  (7.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:02.473862"], ["updated_at", "2016-03-11 03:19:02.473862"]]  (11.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (4.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test21@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::Account Load (0.3ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test13"]] Mtdevise::User Load (0.4ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test21@example.com"]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "mtdevise_users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "mtdevise_users"."id" = ? [["last_sign_in_at", "2016-03-11 03:19:02.522527"], ["current_sign_in_at", "2016-03-11 03:19:02.522527"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-03-11 03:19:02.523527"], ["id", 1]]  (11.7ms) commit transaction Redirected to http://test13.example.com/ Completed 302 Found in 24ms (ActiveRecord: 13.1ms) Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test13"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test13"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" WHERE "mtdevise_users"."id" = ? ORDER BY "mtdevise_users"."id" ASC LIMIT 1 [["id", 1]] Rendered /home/ubuntu/workspace/app/views/mtdevise/account/dashboard/index.html.erb within layouts/mtdevise/dashboard (0.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_header.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.2ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.3ms)  (12.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (7.9ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.5ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.7ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.5ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test22@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "RgzYpGvsA_NASiiW2575"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test22@example.com"], ["encrypted_password", "$2a$04$9tBbj6Q2cIKEYQvcTvgiie5TRrPqSTut74qkVgDAdNkwHtZrrjvXK"], ["confirmed_at", "2016-03-11 03:19:02.630778"], ["authentication_token", "RgzYpGvsA_NASiiW2575"], ["created_at", "2016-03-11 03:19:02.634288"], ["updated_at", "2016-03-11 03:19:02.634288"]]  (7.3ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test14' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #14' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test14' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #14"], ["firstname", "Test14"], ["lastname", "Test14"], ["username", "test14"], ["subdomain", "test14"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:02.647513"], ["updated_at", "2016-03-11 03:19:02.647513"]]  (9.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:02.661653"], ["updated_at", "2016-03-11 03:19:02.661653"]]  (8.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test14"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test14"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test22@example.com"]] Completed 401 Unauthorized in 5ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test22@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test14"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.0ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (8.4ms) DELETE FROM "mtdevise_accounts";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.3ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.6ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (9.7ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test23@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "msPk4jshGEJf-6pxAZFU"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test23@example.com"], ["encrypted_password", "$2a$04$37M2VSMwCo5fd3L/VxUMHeCuGrxoczL/fmttV1mJAK3JHdRgdpZCK"], ["confirmed_at", "2016-03-11 03:19:02.793854"], ["authentication_token", "msPk4jshGEJf-6pxAZFU"], ["created_at", "2016-03-11 03:19:02.797323"], ["updated_at", "2016-03-11 03:19:02.797323"]]  (7.8ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test15' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #15' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test15' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #15"], ["firstname", "Test15"], ["lastname", "Test15"], ["username", "test15"], ["subdomain", "test15"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:02.811322"], ["updated_at", "2016-03-11 03:19:02.811322"]]  (9.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:02.826006"], ["updated_at", "2016-03-11 03:19:02.826006"]]  (10.6ms) commit transaction  (0.1ms) begin transaction Mtdevise::User Exists (0.3ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test24@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "T2LYWMry63qYz4J9JMxQ"]] SQL (0.4ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test24@example.com"], ["encrypted_password", "$2a$04$YgVmIrvLaCEqvqyKhQ9zq.Vvh2xJV1ScdTh.p2vGC8B0gaHNsbaqK"], ["confirmed_at", "2016-03-11 03:19:02.842588"], ["authentication_token", "T2LYWMry63qYz4J9JMxQ"], ["created_at", "2016-03-11 03:19:02.846241"], ["updated_at", "2016-03-11 03:19:02.846241"]]  (9.7ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test16' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #16' AND "mtdevise_accounts"."owner_id" = 2) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test16' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #16"], ["firstname", "Test16"], ["lastname", "Test16"], ["username", "test16"], ["subdomain", "test16"], ["owner_id", 2], ["created_at", "2016-03-11 03:19:02.861416"], ["updated_at", "2016-03-11 03:19:02.861416"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["user_id", 2], ["created_at", "2016-03-11 03:19:02.877279"], ["updated_at", "2016-03-11 03:19:02.877279"]]  (9.2ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (3.1ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:02 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test15"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test15"]] Mtdevise::User Load (0.2ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "test24@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test24@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test15"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.9ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (10.5ms) DELETE FROM "things";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.8ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (10.1ms) DELETE FROM "mtdevise_users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (11.2ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (10.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (7.9ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';  (0.1ms) begin transaction Mtdevise::User Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_users" WHERE "mtdevise_users"."email" = 'test25@example.com' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "mtdevise_users" WHERE "mtdevise_users"."authentication_token" = ? [["authentication_token", "cP2ouAZkBvhJWMkksLLg"]] SQL (0.3ms) INSERT INTO "mtdevise_users" ("email", "encrypted_password", "confirmed_at", "authentication_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "test25@example.com"], ["encrypted_password", "$2a$04$sGrV/G5G7ClhcomDp7OnfOz6WATzwezoUcJ4cJdxmam1RgwyllvAm"], ["confirmed_at", "2016-03-11 03:19:03.011999"], ["authentication_token", "cP2ouAZkBvhJWMkksLLg"], ["created_at", "2016-03-11 03:19:03.015139"], ["updated_at", "2016-03-11 03:19:03.015139"]]  (10.1ms) commit transaction  (0.1ms) begin transaction Mtdevise::Account Exists (0.2ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = 'test17' LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE ("mtdevise_accounts"."name" = 'Test Account #17' AND "mtdevise_accounts"."owner_id" = 1) LIMIT 1 Mtdevise::Account Exists (0.1ms) SELECT 1 AS one FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."username" = 'test17' LIMIT 1 SQL (0.3ms) INSERT INTO "mtdevise_accounts" ("name", "firstname", "lastname", "username", "subdomain", "owner_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Test Account #17"], ["firstname", "Test17"], ["lastname", "Test17"], ["username", "test17"], ["subdomain", "test17"], ["owner_id", 1], ["created_at", "2016-03-11 03:19:03.030568"], ["updated_at", "2016-03-11 03:19:03.030568"]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "mtdevise_members" ("account_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["user_id", 1], ["created_at", "2016-03-11 03:19:03.041943"], ["updated_at", "2016-03-11 03:19:03.041943"]]  (7.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-03-11 03:19:03 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Mtdevise::Account::DashboardController#index as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms) Started GET "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:03 +0000 Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#new as HTML Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.6ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.7ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms) Started POST "/users/sign_in" for 127.0.0.1 at 2016-03-11 03:19:03 +0000 Mtdevise::Account Load (0.2ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? ORDER BY "mtdevise_accounts"."id" ASC LIMIT 1 [["subdomain", "test17"]] Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Mtdevise::Account Load (0.1ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? LIMIT 1 [["subdomain", "test17"]] Mtdevise::User Load (0.1ms) SELECT "mtdevise_users".* FROM "mtdevise_users" INNER JOIN "mtdevise_members" ON "mtdevise_users"."id" = "mtdevise_members"."user_id" WHERE "mtdevise_members"."account_id" = ? AND "mtdevise_users"."email" = ? LIMIT 1 [["account_id", 1], ["email", "foo@example.com"]] Completed 401 Unauthorized in 4ms (ActiveRecord: 0.4ms) Processing by Devise::SessionsController#new as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign-In"} CACHE (0.0ms) SELECT "mtdevise_accounts".* FROM "mtdevise_accounts" WHERE "mtdevise_accounts"."subdomain" = ? [["subdomain", "test17"]] Rendered /home/ubuntu/workspace/app/views/shared/_validation.html.erb (0.1ms) Rendered /home/ubuntu/workspace/app/views/devise/shared/_links.html.erb (0.5ms) Rendered /home/ubuntu/workspace/app/views/devise/sessions/new.html.erb within layouts/mtdevise/signin (2.6ms) Rendered /home/ubuntu/workspace/app/views/shared/_flash.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (10.7ms) DELETE FROM "things";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'things';  (9.1ms) DELETE FROM "mtdevise_accounts";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.4ms) DELETE FROM sqlite_sequence where name = 'mtdevise_accounts';  (9.8ms) DELETE FROM "mtdevise_users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (8.0ms) DELETE FROM sqlite_sequence where name = 'mtdevise_users';  (14.0ms) DELETE FROM "mtdevise_members";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (9.5ms) DELETE FROM sqlite_sequence where name = 'mtdevise_members';