(0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.9ms) ROLLBACK  (4.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (12.3ms) SAVEPOINT active_record_1  (1.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.8ms) ROLLBACK  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (53.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$T7VMsk4XSaPo6vrMXajXkeRLqRPF/dMtIl0Wxm7Qi5eZoysV24aEW"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (20.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (3.0ms) CREATE SCHEMA "test1"  (39.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:40:37 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$330dypvg4qYIWoEVdW93guCgi5t.OZ69JJun..jYIfSwmG3cHoy4G"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]] SQL (5.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 0.8ms | ActiveRecord: 8.7ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (17.3ms) ROLLBACK  (8.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (70.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$hlPfm00oMXq3gjEoEpvKGuYha0Qpqmjs5mXXhRZGPk6y6.UfsBcqy"], ["updated_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (8.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:42:17 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.0ms) SAVEPOINT active_record_1 SQL (8.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$FyO126znrlIYVFalg7bqMOP46r5JTprdsRn8UKnzMSSCNJNRFs2.u"], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00]] SQL (6.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 36ms (Views: 0.6ms | ActiveRecord: 17.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.2ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (100.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:46:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Ctg6sL/kd7dwDSu4mg17POxPWHNtonOAuSLaJuK4phgZOrQx2FbHa"], ["updated_at", Thu, 11 Jul 2013 21:46:13 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00], ["user_id", 1]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (13.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (12.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:46:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (28.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 42ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.9ms) ROLLBACK  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (4.5ms) SAVEPOINT active_record_1 SQL (88.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$82tk3L63gcVgKqc47YFzteeXA/SV/HMGw7w/ho8f.1cR648hjdGrK"], ["updated_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:47:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 29ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.9ms) ROLLBACK  (10.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (61.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$n5Hejqd8rI/zXbi9Trox0OLXBM7rsijiWHnUmuU02Eeeuz0pXleiG"], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["user_id", 1]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (6.7ms) CREATE SCHEMA "test1"  (11.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (22.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:47:49 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 25ms  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.1ms) ROLLBACK  (9.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (3.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (25.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (65.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$..pKzV5SC.zFq1NZeGxLj.zWPT2E4V9HfgJ8tuyoXRmDRAc5ABAWK"], ["updated_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:48:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:48:20 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:48:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 8ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.0ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (22.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (91.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$bxpOmUpRN/CUNuUaE1oDP.Q5ihuLD2Ngs0cWzZ0ZVHy9Shl0CXIVq"], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (10.3ms) SAVEPOINT active_record_1 SQL (19.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["user_id", 1]]  (30.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (11.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:52:31 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$jBAsrMYeBVlvxZyrBdNIwepFx8FZaZjI58fCNwKGSQ.ksw3i.TFp2"], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 33ms (Views: 0.6ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (19.0ms) ROLLBACK  (1.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (52.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:55:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$hggdmYixon4JR9p.ZMHNs.tx2OJmQjDitTsbPxYtVxpxL4GDz9RhG"], ["updated_at", Thu, 11 Jul 2013 21:55:43 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["user_id", 1]]  (10.6ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test1"  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$RgnR4llwignaofEM/4mTOeRmUxXcIAzoGJ2Rjus2lvd3XeLAx7cfK"], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 96ms (Views: 0.7ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.7ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (21.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$.N7K4RHZCCfYHEqhJKlOzOwBOSB8AkN4eeeJJUGHqJahUIegtMIie"], ["updated_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:07:23 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (40.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8jyrmwvGYjmKSXYfi7QFr.PDyzExc7Cc121euM1YD0isTi9xAySXa"], ["updated_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 263ms (Views: 67.7ms | ActiveRecord: 45.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.3ms) ROLLBACK  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.8ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (12.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$yVMZokXN108FEyDlflO1/.NtRicG8lhDi3CO36aPD7x0uT1Ib14XS"], ["updated_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00]] SQL (4.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:07:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.7ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:07:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$wxwuQCCGUAOjpddcT48JrewMm6gRazmeFgK.CpZMNnuRH5goSHs4e"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 2]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$DXFVJjbTiPRYLMuQk9iJkOcgjcMvUOW7HZbYiRhX8LgzZeRV6D8XW"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$3VQNRtEIlHZBO/wVo/zc4ux..L1RGe44L9R2tpL6X1ywC6igQGM0u"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Root"], ["owner_id", 4], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RsUTq9Bzuznfr8iWJK59' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 3 [["authentication_token", "RsUTq9Bzuznfr8iWJK59"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (34.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.6ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$sXjAUTHeQMDnXWwIMcXJxuTJeO7nW/FFFnzfw/0YIMWenchbLbpGS"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:07:49 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$wPomn7YI5NbnztVAAfy8LOos7FWyE93CIK7FxFKF7TbPGNirjV4We"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 176ms (Views: 43.1ms | ActiveRecord: 6.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.4ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HtXitVdX8jIjA5FRt8M3KO60tEiOwLZ7zwR8qtbaM05hwSOxPwtBi"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account"], ["owner_id", 7], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.4ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$cGCIAqOZl1gcFkY9WY2.OOB6TvyhLdXDGfcYrshswFHMCZuL9Xkue"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 8], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 201 Created in 18ms (Views: 6.7ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (50.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$bEWJQ3d1k7lxf9O2CO0pBOnQzBxkrS6gC2cDFDmXBBX1zjsvepiHq"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (6.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 9], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test4"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$n41eNfwS3cKKbhXvc4ZzOOuFC9nFTSDzhbHE1jyr.7JGEaX.J/z96"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 10], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.4ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$FfRcr97s6FtymZZAXvdaoetYRKWlBYVB9ZTepStYoWrZItIkgBqay"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 11], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 11]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 9]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 201 Created in 17ms (Views: 6.3ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"11", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (17.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$zF45wFyrW2MgzgEC8vRmd.sAdnXBUxdYeEBHfjGhObf1L1viAg4.q"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 12], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (16.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.1ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$4n6BV6SXvilnyC6H9DUsnOq.EZeAccGDCPJNPMrMWgfClL7N0BOT."], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (7.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 13], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["user_id", 13]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 10]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$nOkNqdFjS/eBkBdh5KgFEe9Q8n1PYdgeDP1ckFY1P./m1CBO.7RUy"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["user_id", 14]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (2.9ms) CREATE SCHEMA "test9"  (6.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 12]] Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | ActiveRecord: 6.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.9ms) ROLLBACK  (0.8ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.6ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:08:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 7ms  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (9.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$PG/VMGcaIe303DIXVrPR/emCexfU4Mm62TTQws5vv4kkOe4fqRWfK"], ["updated_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00]] SQL (15.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:08:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.4ms) ROLLBACK  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:09:23 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 6ms  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (15.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$faxYbnod6s3ZzzOkki8VEeTjdGeyNGeIvlFikg3gNVbABXlwvERQW"], ["updated_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:09:23 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.8ms) ROLLBACK  (3.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:11:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 173ms (Views: 0.4ms | ActiveRecord: 12.5ms) Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (18.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xi4MCf5U7CJ//bw2VqRieu9.dRAnbT9u3fhPyZOnOsc04qW8wCpNW"], ["updated_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00]] SQL (4.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:11:35 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (14.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (4.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 35ms (Views: 0.4ms | ActiveRecord: 22.6ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (35.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (1.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (82.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$hokj3zIAss33WoVlef/9MOjgUt8e.o8TjRSYo6QBTz8TKqdBe3rYW"], ["updated_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00]] SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:13:12 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 39ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.3ms) ROLLBACK  (1.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:13:12 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.2ms) ROLLBACK  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:14:17 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 169ms (Views: 0.4ms | ActiveRecord: 5.4ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.4ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (51.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$x2s83VZ2Ijp9IgyKtNrKFeRuD7rZSfWRikeKUjfgLS5f9AkaRnjQS"], ["updated_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:15:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 26ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.5ms) ROLLBACK  (0.8ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:15:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (41.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (97.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$MeHmG1QH0JWuCsOLEmMyuOSUYy5riwLrID71nGE3j090K5gJUpova"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (4.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 46ms (Views: 12.1ms | ActiveRecord: 10.5ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.0ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$N2aI7cIU.3GzfRZ5RaruH.oo0O5FXP56osm/IF0MalVD8YJYYj6qW"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:18:19 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:19 UTC +00:00], ["user_id", 2]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 2) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pPEYxxZTN3CXWyFWXrri' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "pPEYxxZTN3CXWyFWXrri"], ["updated_at", Thu, 11 Jul 2013 22:18:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 2]] Completed 201 Created in 364ms (Views: 33.4ms | ActiveRecord: 74.2ms) Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (21.7ms) ROLLBACK  (10.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.5ms) BEGIN  (5.2ms) SAVEPOINT active_record_1 SQL (89.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$vQfV.O5JZypO2L0lXjPD1elSFlnXjXkeFlVCZU6NNsmJjT0vZYbUO"], ["updated_at", Thu, 11 Jul 2013 22:18:54 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) SELECT version FROM "schema_migrations"  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.5ms) ROLLBACK  (26.9ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (21.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$5utf62YqWexqTs.62M74buaC.HELrNWlD1tb/UFLxORRee1Favv.a"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (20.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 43ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 35ms (Views: 0.4ms | ActiveRecord: 9.4ms) Cadenero::V1::Account Load (10.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.7ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Mdf5fetmrCJ90ynzQ9NniuMeZgVjo5Qr/M5Flqy4NGCrX27PxIp7a"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test3"  (7.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.6ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$tAsGSaQMuG2yz0cqVm5Bk.MU/SqLCHRDQe8wlvoDRPGtO2ms7Z.Hq"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (16.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 52ms (Views: 37.6ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (3.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.7ms) ROLLBACK  (0.7ms) BEGIN  (2.4ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$0KsQfJhmN8FzQvZVwh0yOu9H2P6pSezEKKERc1D28EA7oALKslpVC"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (14.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$JG1C6rS.6XQKzogrLbmhcue0W8xbCcpWWldtVZK7/jQSox0OKGVDu"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (9.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (7.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$oAerzw74YHkNZ03ddABoT.YFSVRVhxtBaPy4HdXelW0IbjSoCahJC"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (4.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 24ms (Views: 6.0ms | ActiveRecord: 11.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.8ms) ROLLBACK  (0.4ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (2.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$hKqhZjUYyp1sM6KIX0yfc.d38AL03yA46tlUew7pWejHmROejU/Tq"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 8]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$HMzS6Ksi9lPMBj/itee4m.hnEzSlCOB38BTmGYIDASJeE5VJQ9ETq"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$nUHA5Y0fHt1QvngoifCG3.vXpsog3ACwxKIPzRxCZvVt9NUkBEwr6"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Root"], ["owner_id", 10], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yd43tbJBqjWUgMqqN53q' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 9 [["authentication_token", "Yd43tbJBqjWUgMqqN53q"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.2ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.4ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HL.DM8LrgElLo8aRPxgfy.fkqDPTYZrOX1rBEefCbpobgG.ob5nx."], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Test Account"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.3ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.5ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$0zyoRhr7iJX.zphBBA4G7OpkTe36kOu8fRHMJ5GaPIw/o7kxXxwmK"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Testy"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 11) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NM7Q1fJPapJ5ApuE1yUx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 11 [["authentication_token", "NM7Q1fJPapJ5ApuE1yUx"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 69ms (Views: 1.5ms | ActiveRecord: 35.7ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Nlh4.6lGdtjnBxjk8a4WPO6jkDEhJNOH/7YVZhCFF7xPlLwySIHoS"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Testy"], ["owner_id", 13], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$GDG.H3GLqO5P1vaeuDT30.43.mZI9OZCK7wqCOBeOl7V6ksy5c53O"], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:19:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$7J4SzU3beTueLOaIFRGgG.A0XDOKX7d1/taWDnw9XiLKDcXUsXu.y"], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 15]] Completed 201 Created in 21ms (Views: 5.4ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.0ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (10.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$IvSrS.KI9XVR1T3NOtIoru33h07VxU2W.VKnBzKI8/qjgqJsF.cYi"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZpxKVT9CAvssn2cWfs5y' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "ZpxKVT9CAvssn2cWfs5y"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 379ms (Views: 16.7ms | ActiveRecord: 57.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$dxwHiqgznspCp13aPFGYcuUeJ2b0yuMN0hK0t9LLU9wsHE7/CiJpG"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]] SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 44ms (Views: 0.3ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.2ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.5ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (11.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$cC2VThfDPVd9rjH4L7AIUucvmAS4bzQPgnpuVb/w1RBWLofywI/1K"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]] SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.4ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.7ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.8ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 6ms  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (1.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$BMmprn6SkT1REfoIZiDd7ehmQ7qSVZD1ZuW2N9fnGlP/r4KXNl5zG"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (19.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:20:27 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$.dD2Ew0XD3jEtu2DhqzYwuYjSqrIHTqfK9jdF7Gi7DsEWrUO1EOo."], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 196ms (Views: 52.1ms | ActiveRecord: 8.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.9ms) ROLLBACK  (0.4ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (7.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$3Mu.xVqYIXzx5T4TNaLR.uQyk9bjcp62eK.0sZMEuvLX.5KQqn5/2"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Testy"], ["owner_id", 4], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 3) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (17.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nh7mWuGG6pvvtRnWk72U' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (11.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 3 [["authentication_token", "nh7mWuGG6pvvtRnWk72U"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 143ms (Views: 1.5ms | ActiveRecord: 96.6ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$s0fGXO8OlXULX7od6ftB8eAaT1roMQsX89kYNqZFqw5ML48m2KGla"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]] SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Testy"], ["owner_id", 5], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (27.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$3819RtGkkrR89jM6Lo7kKu5guxogH2LmqP1j5tRjRZL593q8V2jVy"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 6], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 6]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$jFspaOaaAYkG9IUjeXdsUOGSE.dsGjXYmrKNFwX1kCaExuI2JKfuW"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (7.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 7], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 7]]  (3.8ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.9ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (35.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.6ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$I1ksq8P9h1gEGCqW03dlReiquflHCWVVnJZLIi4G2iHHKkkWQmGVq"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 8]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.4ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Qg3x3XwWOH/Mh2eAsr12GO2qZb1vhGM4nJ9cFwe5OjV1olkmdSHMa"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test5"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 22ms (Views: 5.7ms | ActiveRecord: 9.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.9ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$B6k1Iw5pcdcv0keAAvSSCu.lQgpjcgu3o.IzGZGQFGtKw6lgIw01i"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test6"  (12.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.2ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$E8ZNN4vmrDJQTL6/GmePl.i2G.GUZ40Mse0WyOWBTNYzhfeHE4TjS"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (8.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 10]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 201 Created in 16ms (Views: 5.7ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"11", "default"=>:json} Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.6ms) ROLLBACK  (4.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$JMdOoTGpvdeee18gaxHxKeJh.SW1K3bTHyjFVBa02A5.jw8xHMQnC"], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 11]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.3ms) ROLLBACK  (0.2ms) BEGIN  (9.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$JxfdLhufPSJbrZAVItpwMePPXvxU2aKmmvnvN36TT.vX.SktUqTXO"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$O.FMHrcJNIezmZmW68Zpce7C7JnlUyshvY3J5Pzpcee1wEz8g4o1W"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$YxW0xOqP2UDpKeOj/MEPIOt/ZQH9zP8HUnrHViG9XfYPKkgc9LbOm"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hq2zepGULXmhwpAsZ37n' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "hq2zepGULXmhwpAsZ37n"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.3ms) ROLLBACK  (8.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:21:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (25.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$1CdeN7rjl/Q1H59PoJy9qeOEBcderUqMs6O/qZtTDGyIM/BbqQAy2"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (9.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BppdBA661XY6sSfUnbav' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.3ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "BppdBA661XY6sSfUnbav"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 571ms (Views: 28.3ms | ActiveRecord: 113.4ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$4PJqobEMgs4NzV.wMVqO4OeWOSsoIwzLDaOkFxunXTqtLBo0ZnPX6"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:21:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 22ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 SQL (23.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$COjifeXdhudAiysoWNd8SezeABZ/zPpqW2oFLQetjys3uj2yP7612"], ["updated_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 1]] Completed 201 Created in 196ms (Views: 72.4ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.7ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$BhV2BjixouXlfxuo1WH7qeFwrJxPR9znx5fKUv6xy7p0gf8BoTp0m"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (5.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$wgdGAau337feAaKQObwtiei3.rlH5mnDMJu68sXxpO3KJs.SlOa46"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (5.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 8ms (Views: 0.6ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.6ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$rVVjBdoh6SnktChYqwNT9.zfR2wHvXo3tJT0dOwJsIa9oMP6Mi.bi"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 4]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test4"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$zK9ICuvPhPAMEMppIrS9ueFcAuh5TaKlt8ruKOYuHyP64CSoNljL6"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test5"  (12.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (12.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.1ms) ROLLBACK  (1.7ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$1NfZTxlX3Yjfj7uefPBlOuCMYoSvGGFpMMHJ2HRTptcOaio/UW51a"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (8.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (18.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 9ms (Views: 0.5ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (7.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (4.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$Qaadiz5BNh3Luc3n.AxqcuiPLvVmwV/ITJFxcVRJFksAbJlnryNS."], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (18.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 21ms (Views: 6.5ms | ActiveRecord: 7.1ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.0ms) ROLLBACK  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.6ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (47.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$D5LUOwLg1bzte.gwMLXcwuRSaKesYvDx0r2MS1MIMQ05W5Ul5ELA2"], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.6ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test1"  (10.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 230ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (68.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 115ms (Views: 17.2ms | ActiveRecord: 69.4ms) Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.6ms) ROLLBACK  (1.0ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$WmSUCi6ZlCP3XUshljT9gedUu4euQlmX2nQ.IJhlP/5AGoRcf93dm"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (34.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (18.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$34rMwEbL0tzsCQPCzu9TJ.umRiFhlkaiid.95Jem7A8fLBRmhc6xW"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (44.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.1ms) ROLLBACK  (1.7ms) BEGIN  (2.8ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$.TRtI2mKoJVO3NRA5xNcpO3MnNnQVymNKeOR7WC/NKJRDcSq7i8RS"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (21.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 79ms (Views: 45.4ms | ActiveRecord: 25.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (32.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$qabrerTILoxCUeCK5KNoW.x0bhub3YtpW/jDiGQywOx9NpuRIzfJm"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$hESoNsdsMgrgDgStAEufs.rufOebFRxp1NLoj42wRdSWTbSzZWQYu"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (2.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["user_id", 6]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test6"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (15.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 17ms (Views: 5.5ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$U82fi7rDHiPTfpeVKzsf6.lpPXcRror39OqYxLU7fVOrPOVSAdW6."], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (107.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (1.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (11.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$oqyyFA3GZhIzYvW1iAF4KOE0oxwdEGX3DpuIV.uRsE0VQi2Bi6phm"], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1"  (10.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:29:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 134ms (Views: 0.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (10.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 1]] Completed 201 Created in 106ms (Views: 54.7ms | ActiveRecord: 24.6ms) Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (30.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.5ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$D0KIUl9qz81eOe5QhPrafeiRAENNq3AvqRSW6cKuKr4E4Mq4DIMke"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (26.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$pOqi7g1CWMJB3dwbSOC1IuG1tzsjMzc7iKsncdnhua7NACkA9E04u"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (8.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (13.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (24.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$dCZTcXh3QvfDOvl82IENguqNLfeDeqgFEyQQzPp7RRIrzZaguS3mq"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (3.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (26.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (21.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (12.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 30ms (Views: 6.3ms | ActiveRecord: 16.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.4ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$E0vG2prtMEUTA34jjZkutOiZgHicTcL50vW4W92VMBa0t8s00MVxG"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (10.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 5]]  (6.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test5"  (13.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$9rGU3YIH6CErXrDIfHcbJe/1qC8detnsjcHjrJmo4XvmzNpJ9wpoS"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (5.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 8.2ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.4ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$wB//oGDHfkt6w85jZ86MEunE9C65oaMH/nybahEBcdxs02ExSea/."], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (8.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (12.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | ActiveRecord: 6.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (64.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.6ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (7.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (1.0ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 SQL (16.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$a9fL2a1E6mSWPpeyg5HEy.Yr8uud0Hvx2nedGjKurbnvOUdNkeA0G"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (9.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["user_id", 1]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (8.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:49 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (17.1ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$ep1PZiYfF9aB0jt64AkeIOwf.GZBggl4XYhs3QxG5plGna96e.L9K"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 132ms (Views: 10.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 18ms (Views: 0.4ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.6ms) ROLLBACK  (1.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$mNhmnh5D6wczczdxlFBuIORY/emcinA0Nw41KJhzSIftZvuTBZzG6"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 3]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test3"  (25.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Y38S2LL3nVnMIXsCEAh14.oh0eKjXhnHJcQv.a7nSskpOqdfKwo2C"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (51.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (10.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (16.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$n1i0zuL0XrJyeOXNc3zb/OjhkHhRpKXXtNi6tzJ.81ofh0aeIbG7G"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (8.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 5]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (18.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.8ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$xUI5XBT.kaTVzLCP2nRatO7BGnSwLDJSz78uCG5i49u18AucSY8mS"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 6]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (16.4ms) CREATE SCHEMA "test6"  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (10.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 81ms (Views: 55.5ms | ActiveRecord: 15.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$S/sF6Fe1PFU7aRQwrmP.dOp2w7gGWvA7sCwt3uwx.TJnehI0ImHD."], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (16.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 20ms (Views: 6.2ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.5ms) ROLLBACK  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (5.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (12.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$SugQjYd8fe.4ucgka8IfYe6dYKSlYYxJdgTdD1lwi4RT3vhH/siBm"], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (13.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.6ms) CREATE SCHEMA "test1"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 132ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (44.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (15.3ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$.0mBnxvlaw.ZDhYmTyBAtez2Vd8lb1jXqPvxlugEYA.sCz1HMqI1O"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (60.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.4ms) ROLLBACK  (2.4ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$IZC8TAUmdjX5C7ndzHt6KOLOby/39JayQg4M9ol4Ibiii4fw65bM2"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (12.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$MVc.f9N1aYoWhYSuBWrJ3eyiBtZ9i2vBu.ex2j8AhiVnN.xgMKImm"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.3ms) ROLLBACK  (16.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$eF7n7KDmdgYTpKdS1ygTk.y6gbZ6oODX9zokEmc55tfe3xT.P6Gjm"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 5]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (13.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$Af3ChVB45O.kcC5qViw/w.NlDZl9NkSjwf.1Jdo.3EvHS/k0e9vh6"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 6]]  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test6"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (13.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (2.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$CPtBqrOZhDPnW2BLYGLzjexMtyfUgDo9.1AihfumNLYr6lxi6yCci"], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test7"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (10.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:28 -0500  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (19.0ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (56.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$lF6E8xLv/uo9Uog5l/bxde3SjULE7hNmRBDCegxWrjNTLQlpwLh6a"], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["user_id", 1]]  (7.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (23.2ms) ROLLBACK  (10.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$yIBRDfZQisW8gSvSsWlP1.Y5xTwvi4JAYhGhk1AA4lq89GxotX87O"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (4.7ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 87ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 51ms (Views: 0.4ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.4ms) ROLLBACK  (1.0ms) BEGIN  (4.2ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$TO0DLIvKdQ1yCGMiO/R.oOnq6n9NpMhxHeBGAcLf9GLijKiwr7vUu"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 3]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test3"  (11.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (28.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 82ms (Views: 36.8ms | ActiveRecord: 37.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.4ms)  (9.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$jHTdA84tZpAgPkuAp7yt0uxHp0Y2L04RB5ucuVzw8r.wPId46hSne"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test4"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (7.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 23ms (Views: 5.5ms | ActiveRecord: 10.4ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.3ms) ROLLBACK  (5.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$vL7.7DYKYAzmqmiKOntkeelUHWFFM0yefXaOcJggMn2UoN26MFPoe"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test5"  (24.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$zn0zrHXYd0xmzmiZTpRn/uPhymvHlh8txU9zPSvhhCvF82C8YvvYm"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["user_id", 6]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (17.6ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$Rqk3HdmGfwODNK8HQvVOReer98ecUVyMbWXtBRtqWt9E5DcfD/2P2"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (20.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 24ms (Views: 0.4ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (30.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.0ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.4ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (9.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$TFhtynqRmEv76zFaoZVylerKxYU6DkVik.IjuWouRGWNSPIBW4rhO"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) CREATE SCHEMA "test1"  (6.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (42.3ms) ROLLBACK  (13.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$l70g0ILr9DgC3SxC7XRx7OQ/befF0CZmscLP9ONrGaRxpg5m9ePpa"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 2]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (20.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 152ms (Views: 55.6ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$IxtkVyOstdMXGfUCnQvt6OaA0ejbCvugX60EVPby9N6V5WDLawb7y"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (5.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 41ms (Views: 22.3ms | ActiveRecord: 11.1ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.3ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$e4cuEI9IA1rPfIWUdc/3uubce3TNX0Jg92DNX6s0GVXXvNNJRi11u"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 4]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (8.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$nyyI55KL2dpU/OPSz.nU1.OAzryIjioOR6HmV4eW6geyPHbruytIe"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (46.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.3ms) ROLLBACK  (3.8ms) BEGIN  (6.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$3wuXIt32xcYS1VyW14Z.6etKMBC8Tf3yCy4x4d3kyjdzd0X6xN77m"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 6]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (12.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 6.6ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (15.4ms) ROLLBACK  (3.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$mUay7cIYp0ovluzHEZiCNeB4dfAcS38a/xbACUko3/RH303vynK/S"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 7]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (5.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.6ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (11.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$kmteqQC3oJNNyoxbJ3TD7..gBPPzEY69WyFAwnUT9.ed/kCi8YqqC"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (5.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (8.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.4ms) SAVEPOINT active_record_1 SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$k4OHQd0kcFtZ7CAIJyXwlOn.5xc0fejhBiL.C3pz655/c5Z8SkhPa"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (5.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (7.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 116ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 18ms (Views: 0.6ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.3ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$8JRPRzB0kCX5wQmmuPGR1OwVNR.2mjA6FrpQ.bqaNkXDPufOlrU36"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 3]]  (4.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (13.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 91ms (Views: 72.9ms | ActiveRecord: 10.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 2.7ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.4ms) ROLLBACK  (1.3ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$ChTQwZFAEItrGkSdmA8l7ODFV3y/0bnvDIWw4tXuasMAq/JnSLldi"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (5.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test4"  (15.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (26.3ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Gih0a4G7V8NKvlEP2iGWJOA7NJyfjcHT9jwItRy.Pn9/5AP3qZVEG"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (10.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.7ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$FGZyLoGwyEHK19JrA/xae.eKmuMlLgq1aa.bJGtGlSQSIIC3PGjSW"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (22.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (5.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 6]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 23ms (Views: 6.7ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.6ms) ROLLBACK  (1.4ms) BEGIN  (4.4ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$A2.Im4p88e4i75Uk6dSBoOeOt6V5btRguoSc1ELzq5VWFuOTl7A5C"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test7"  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.2ms) ROLLBACK  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (22.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (21.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$E/HEKzoY8bApfOZT/9K3UOa4WPtcEjWMgrhq1ksYhFnKVIjsVYxMi"], ["updated_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 1]]  (5.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (10.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (10.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 207ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (20.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 1]] Completed 201 Created in 96ms (Views: 39.0ms | ActiveRecord: 30.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (32.0ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$geBeyqxLftybAJ41AAYgEengTSeNIx0X4mOimopZAfvBt6Sa.cPPq"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$RqZrIJagCdil2XgFBDHaIOdhLC9j1YADTvbyfdXQe49oHhD6JLs4O"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 3]]  (1.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (43.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.9ms) ROLLBACK  (7.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$fviqrWENeARlFhBpLZFT4eY8yp.hLGIRZC08lGOlKZmuvFwCvyXAe"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 4]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test4"  (9.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.0ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$/5QAfUtjOAS4aMRA.zAK9OfY5ESXW.oVJOzu1gSL4jPnzRsteT3xO"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$oz4CoAWOhvm.944UMJe1ueItTPTQFKgyAdKLZNZI0IwZwfHh18GKy"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (40.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (18.4ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$g/PYpTxI.VEgaobxmgqxW.CFSo73dX0ZOhrXV.H8eyovqj0bREUVW"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (10.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 83ms (Views: 67.8ms | ActiveRecord: 8.8ms) Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.7ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (11.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Y0evq7kRoR98DBgEWdx8a.vz47UVQSLxGbrjpoNBX6IPPxQ0K/G2i"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (13.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (12.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (15.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$r0h3uWeH4Ir8haEBKHy70.W8qr.6tUbmIyOHkemirHNps8kVYOsrK"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 107ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (3.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 20ms (Views: 0.7ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (39.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$WTfybG.4I.cuDuqzj9JnIeJeMDmY0S46uayuwYae/Rki6HPcpab0K"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (24.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (15.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (6.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 66ms (Views: 42.4ms | ActiveRecord: 11.1ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"3", "default"=>:json} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.1ms) ROLLBACK  (0.6ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$hGEmW6cl0of/4q5q2cXYBO.D4LzsRICjplXncdBpzZEHHMoy8lOAG"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (7.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) CREATE SCHEMA "test4"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (101.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.9ms) ROLLBACK  (2.4ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$S/dx7llYIeQk4EwKVyqq7.GKCp/SBVBWjQVsLxwX7J53RGdrPdHz2"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (5.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 201 Created in 21ms (Views: 5.8ms | ActiveRecord: 7.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (1.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$rDEKIBW3Q4f6nzJzzO8JQui1bed0rikTrJJwAqWtC4aV8NpB7l4Wa"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.7ms) SELECT version FROM "schema_migrations"  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.6ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$pdLyF2ZR7VFYmeNTr9ZGr.wZh1/2Hj.wa9mYdA3n6s8VBh2K3U9Am"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test7"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.6ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (5.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (1.0ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (78.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$sO6rgkpUmf5J.PWdEChHhOQEj/aE.M7mld4EzvHAJA8pep4GzdoKK"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (11.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 44ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 56ms (Views: 0.4ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (32.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.6ms) ROLLBACK  (2.0ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$TrQYZpAB2/B6S8N.vMRuje2zddAe5pvrhZw7Pj/jzmUQMNuO65pfe"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 118ms (Views: 101.5ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (9.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.0ms) ROLLBACK  (2.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$HWhsqhi649u9Z/ypUBbxx.Ekf/d2Zssd./6iiCw6WbnknNeUmldti"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (4.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 3]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (21.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$7MGmQJXcGhrU1NcjOTTut.dqq1U0wNPPJIi2V0imQYu164wPyQ1PO"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 4]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (16.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (10.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 35ms (Views: 6.5ms | ActiveRecord: 20.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.8ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Yvzzo7LE9dn5ffm1Zf3bQeE9dMKwnAaT6Qg2e6Evq8mp3UlSPJq5y"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (10.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (16.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$aGPLrab9rhLMDci43cqrReb0kNvbs.6N.fJ8ifcSj0u5x3rJKp1HK"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (31.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.5ms) ROLLBACK  (1.2ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$pmK6WphOYbDCucFzmMkkJ.Utj3sfOkVjm1o/7gLiTPg5q9Wq.uUD2"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.8ms) ROLLBACK  (0.9ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9/fKQeNE5ZEuYl8kl69C0ObEjS.RnvJwgMvVuYjYxHet/rUwe3Hyu"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]] SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 8) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (15.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'duDdwjihWvH52Ew22iRW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 8 [["authentication_token", "duDdwjihWvH52Ew22iRW"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 110ms (Views: 1.5ms | ActiveRecord: 72.2ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.7ms) ROLLBACK  (1.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xBgtey5omfAHMGx2Qlnub.ojeBgUkOGD7Ji5ZO/MCf7zbp0Qs5isO"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]] SQL (2.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:44:39 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 26ms (Views: 0.4ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.8ms) BEGIN Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.9ms) ROLLBACK  (1.2ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (2.4ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$lkBR8xcnZhKorAWgWZfVV.9E0m4/WDNLF6p/7SEXCEZzim3O0BguC"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.2ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (49.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.3ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.3ms) ROLLBACK  (2.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$pb5nTkDBBFqT.CqyTAWX9.CpzXqo1WRy/sbarPQmHdoAilqVFwQ7S"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (23.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:44:39 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$s324UJN/RNaT/KDcgWS4rOym3lHRn3c.8hGYrQdI3xsBx1DvVbXlC"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Completed 201 Created in 27ms (Views: 7.8ms | ActiveRecord: 7.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (33.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.4ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$kRaW4BJB3J6yU7UYgTHFOeOCY13QAvGWOBOnRQFQzWvVz5DDoWdxy"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$KqjI8HzO8lZ0mCEphi3yP.324GHFjTt8FdK1mDFXwmIwFx31aQnoi"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$jDMPyMFbHKa2OLAGFo9kvOC7fxmalz2WBIaOzMTj.2fjZFPQe.EQK"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zpMs3YiQot3SVsqEYSMx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "zpMs3YiQot3SVsqEYSMx"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.2ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (9.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$EiPwUN.iRf3VeY5IVAoUj.1IR/fkcPBVySs6e8vXbPO1DL4ZXNZf6"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]] SQL (5.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (9.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AztsLP7egkyGRNKXSoZz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "AztsLP7egkyGRNKXSoZz"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 553ms (Views: 21.8ms | ActiveRecord: 135.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$hMiguTg4iGFTwdPf.2/EQOXurXNA73QvW9Bz.pdi.VwQ8..72bjKW"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]] SQL (10.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (2.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 39ms (Views: 0.3ms | ActiveRecord: 5.6ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (8.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (12.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$z/T6IoOsjtakozrV5AV/fuWXraBK3YAc/BrynrSOhCFsq07PNrG6a"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["user_id", 1]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (25.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q3kxVN7ahDaGX1UJ8x6S' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (2.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "q3kxVN7ahDaGX1UJ8x6S"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 613ms (Views: 29.4ms | ActiveRecord: 194.5ms) Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.4ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$DlPoErhnSkcAObh8yc6uZOInSmfLjj6qyuCfehCc9pPvb5pltPZ4K"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 30ms (Views: 1.2ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (8.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 174ms  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.7ms) ROLLBACK  (2.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.1ms) ROLLBACK  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:46:11 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (66.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Fs.Piets0OC0K5tC6Rnc9eWlGxENGXMRBavBjqHodcMm98bulP3E2"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.7ms) CREATE SCHEMA "test"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HXpUGuM6EEuefGA1mfzg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "HXpUGuM6EEuefGA1mfzg"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 413ms (Views: 1.5ms | ActiveRecord: 147.6ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (28.8ms) ROLLBACK  (7.8ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9jds8rKvZq5Eiku4/BoUC.OM1IcKBj8me4fOQesachZw.Sf.BL2TC"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:46:12 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 89ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$2sghLpWAC.Y4nPB/y06pqufnYCAoiYP0hc9iyJQUk/ohS0d9z38fy"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["user_id", 3]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:46:12 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Q1l78k86xREzf8uZd1Pz7u4UmlXHcD65q/QEVah1NAbiCiQfl2JeO"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (17.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 108ms (Views: 70.8ms | ActiveRecord: 25.7ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (20.8ms) ROLLBACK  (1.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$xBDZrqu15yLyhrB6DDBPCe1Mt2YOZ3DBCDL8F88kNIlGu.KrIgATq"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$vojWuuESmQfBNAUWB0xkmO8U5G7XE.9PUNvEGVSAueu2Ds85qo8tO"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$/Vik0Yl1o3UFvYiOytuSZO6oWAy.t0DU1yYdNNHRO/ATJBPNYs69S"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Root"], ["owner_id", 7], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZsSmD2gWGTGcXZ7D9rLN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 5 [["authentication_token", "ZsSmD2gWGTGcXZ7D9rLN"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.0ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$rIzuarR43jM6UUPW5rVKdesmIdj1a1Bbeb2kDxfPQOO3Or6GjZzyS"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]]  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$uVkPuoSFDjE0MEG2rpGjB.mPP.QjutnM2dzIg4k/WzddUtFpPRrVO"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 9], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:15 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 18ms (Views: 6.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$YQXYYuBU/Drt8VNDfBAGaehEhVihP4cXaxsPVf8dh1ynD2eMYmfeS"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 10], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Completed 201 Created in 15ms (Views: 5.4ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"10", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$4DXjSOZccVnJfK.tiWM4k.OvxuYbEiyuRE8ldd0putLjy0f.4X69O"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 11], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$LFHnR1xwVZQysRns0GUvhuWYmV2JowkGBzYusrpwv8ZvkO/zcD1Wa"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 12], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$xBBuZJiEZB4VS/ZCFIcqFOLxN0Ouny/i9GeQwk9jIoZsE7mc/lboW"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 13], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 11]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TlEucf8VI6hTa4XIVXfQc.aeNwvyX5Ol8THgIoSogXhQI15JzVjH2"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 14], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (21.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$Q2/cs0OvxBNxddzsI4VQHe61SS7zKOE4nk/gexCEprZAE8Enumpp2"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 15], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 13]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.3ms) ROLLBACK  (0.7ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.4ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (1.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8tXDrIkw9b0eSRTlcqn46./xkOrY7uJ0eJt8xqUoLO1lWUrXmdkYe"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.4ms) ROLLBACK  (1.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$1/SkQe8LY9BBXnbzY8PsPeBqoMwUGAdw4vNtnA8oIdb9e3pHK04F2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (5.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (23.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (26.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (1.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$jv1VHwywzeht6iZ13hlZeuPUvKfAtwOvet55Fmigg78WvTRXr5kx2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 3]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (2.3ms) CREATE SCHEMA "test2"  (14.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 45ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 12ms (Views: 0.6ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (10.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.0ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$YLkGWUdwl1lSAb1AOHf5iuYfEXHiXlmY.wSjyb3lUGhITC0zjFmtG"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (13.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (51.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 13ms (Views: 0.3ms | ActiveRecord: 8.6ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.3ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$4u35hpKVyprNL5/.J7oweO.mYWI4/fwOLVJ/lEB10trh85wqoYBNK"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (13.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 201 Created in 50ms (Views: 35.9ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$3BIn9Vc7F0E1pznt1fpaYeehM15FGZ0lyV0H9Q5fjz9IbsMS9RKWS"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) CREATE SCHEMA "test5"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$BZqCUtcCkiURKwLrS6UkNeRxPXAWXHlZ6jesaCfRxZI8v0FovdTbW"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.7ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (10.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (6.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 21ms (Views: 0.5ms | ActiveRecord: 16.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (30.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$9pnW.gfbb3AM9LTmtoomeO6OiJWhGV9n9ulifNKN8ctMix2rIZ5Ni"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 8]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (31.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] Completed 201 Created in 17ms (Views: 6.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"8", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (1.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (43.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.8ms) ROLLBACK  (1.6ms) BEGIN  (2.4ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Hf7/pt8VxdLosrxWZWGPWOB04.o0uy8L9jiSB9LO4EOnLC7DIy2j2"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 9], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (22.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4BX2Qs/tDnYBnW1ALcXJy.KN/LSDZEi8zaHpZiOul51P3hH/ViYPq"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Completed 201 Created in 25ms (Views: 6.1ms | ActiveRecord: 5.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (21.8ms) ROLLBACK  (0.6ms) BEGIN  (4.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.7ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$F3xTQkypHVghqAHMzaEky.y9SJ.E/.5hgelhM/j8Pf5rONF0A3ufW"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 11], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$9EE1uxhQKKkpEn8yKaY6We1ZM0hUmcZqgy2wunKkbitdmRZdw/YyW"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$aBxsfuOiK/KNe1KgOzH65uLR9swdECBopG3DGkrcL7.G.EtBlMZz."], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tBH27cqBHLa8YNHnroDn' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 11 [["authentication_token", "tBH27cqBHLa8YNHnroDn"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.8ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:47:58 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$eTx8a54Wk7ApGHWTIR9Wne8GPJ/XpjmPvS/dp9KemRG5vQjAc3Feu"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Testy"], ["owner_id", 14], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 12) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'StEMoH1esD8Ptq3KtoT2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "StEMoH1esD8Ptq3KtoT2"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 70ms (Views: 1.7ms | ActiveRecord: 38.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Y4cW/3MJFvjIUn8Jq44Ya.E6vKGKAIC7XUfTujkJ5lR4.ictw5VH."], ["updated_at", Thu, 11 Jul 2013 22:47:59 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:59 UTC +00:00], ["name", "Testy"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:59 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:47:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.1ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (33.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$lzoX3q99Fbp9chhfZCdXLOJSfCzbBXgN1J7JYPpwMKniKSRaHuo2."], ["updated_at", Thu, 11 Jul 2013 22:49:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$HwMFWa8QmW3pc1T3cctfAuaC82RlfSZM5x.qN1jnFc3hzgisLp4um"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$LGzEsIF.gF9V6zDL9qgSWe.USuOnfs7ahB32JVT.cTTkq4vR1SZQ2"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UMApCwKimNixUTTv5Ckz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "UMApCwKimNixUTTv5Ckz"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$NwRxz.xZ8UwWTDClQmT.yOrtk0dKRB7jWVmDVj8YU8k2BgkjczisC"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 48ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 14ms (Views: 0.5ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.9ms) ROLLBACK  (1.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$DNdkKm/HWqp25QF.UYBC6u6AMJEsBOC8INGDDFVzsKUgLmFb/5qiO"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] Completed 201 Created in 46ms (Views: 35.2ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"5", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$GYqiEeTlSfurW9M/pihHJOSQFJZHi.j3nD.s.97hLjaWDporcKNKK"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 6]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$enkXXuu.9Vt4jPZ9l8pXjeYWsiqBUyKVxdBA7K9lMcaLIFp7gX5Me"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$c5fSO1hWq/mwSKi39pJk.efo/kALz50G8fh6Qc/3LmZFvO3l/i/wi"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (4.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$fHS.2GZWMb/XVPM2TwByaOueYIJCW1annMHKm3Wj9hDvFk6iSaK8i"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (6.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 9]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (21.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 17ms (Views: 6.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TtCgM9ZZNNY/kI68XkuFy.NiDXFQ3xWfmdtmetm7GWW2mc9gHBR5m"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.3ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$RB5P41y5.wRB3bu6SWvIneAv99N9Ow/7xiPHhQaeqz7kbCXEuPXsO"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]] SQL (40.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 11]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (10.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (66.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.1ms) ROLLBACK  (0.4ms) BEGIN Cadenero::V1::Account Exists (7.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (62.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$HdZOubv3xoSvGGYQfdHLHOIsSA7GdIuwzNt7aMxH.iURYmgs6c7LS"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 12], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 12]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test9"  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (13.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$51/eN7ueoldMf2nxKgdzYezRbisPPdwuy5nUH0554q5t34/Y0VoTu"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 13]]  (10.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (6.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] Cadenero::V1::Account Load (8.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] Completed 201 Created in 52ms (Views: 7.3ms | ActiveRecord: 33.6ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (34.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (16.7ms) ROLLBACK  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$YU4XAqrWb6BewDluA5mIYOCu.Wkz9Qdq00OTv48EmzEtBYLJVnXrS"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]] SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Testy"], ["owner_id", 14], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 14]]  (1.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 12) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (10.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (7.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wU2QZaqUvVHkqE7qJx3S' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.8ms) SAVEPOINT active_record_1 SQL (5.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "wU2QZaqUvVHkqE7qJx3S"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 173ms (Views: 0.2ms | ActiveRecord: 139.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (33.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (16.2ms) ROLLBACK  (0.2ms) BEGIN  (4.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$IcnnOe79iNvEXk9nRpE63.Li23aJfZCLKKBATeAqLDHiIJvA0PKBi"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]] SQL (9.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00], ["name", "Testy"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]]  (14.0ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 17ms (Views: 0.4ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (2.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (18.6ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (31.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.7ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (14.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$oLoolbI4D/g91F4r2FHYUut5nisAHF//MflJ3wjXA3mWf5RkYujhK"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (10.2ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kyfzuWNiWE1xz9jwr4Y2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (15.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "kyfzuWNiWE1xz9jwr4Y2"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 656ms (Views: 0.2ms | ActiveRecord: 176.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (19.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$emGYEwlOxTPpky0ZYYDPP.lvxqge4OuS1/pajD1g6H3mzIp2SA7.e"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (4.0ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 30ms (Views: 0.4ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (29.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.9ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (1.0ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:11 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (22.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$woIeudwRaxKkX.2S6yjAMO7QwMGdqSwWOikLS9UoUPcCvNj36Dv92"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]] SQL (2.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["user_id", 1]]  (7.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.5ms) CREATE SCHEMA "test"  (34.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.3ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3YYH2BH6N6kZ57mTdzCp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "3YYH2BH6N6kZ57mTdzCp"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 691ms (Views: 22.0ms | ActiveRecord: 179.3ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (22.5ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$ja6TOFIlo9lvR05uHaQnPexs5iFyWQjaBmp00jEbTJphQwMZNaf4a"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]] SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:12 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (13.5ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 36ms (Views: 0.3ms | ActiveRecord: 14.8ms) Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (15.0ms) ROLLBACK  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (67.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$dcxFGzddjTILx8Zt57UeyuEWWIUQusg5NDUy2Kyep3r0wRJd3Nv.u"], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["user_id", 1]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (6.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (50.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 1]] Completed 201 Created in 206ms (Views: 55.7ms | ActiveRecord: 58.7ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$yM1llQ8CM5KMFV396FyWnO1eB/7jGgriLahC2yEimHV.L5hlOKmNe"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 2]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (10.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 18ms (Views: 6.0ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.2ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$XYfIA0jahnjpX/ns6phBRuJGyKjHbaDFTdxCL5chUfhZzSNjtQ0hy"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (30.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (26.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Yi0.krZLFtBElQjpZhNrk.22L7haAYNJoBHVesEpMJQas/ySTFYAG"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (29.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (16.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$0xxTbE8fwACzy51d4EVPcu6XLF7Mq43qGBHXxkV/EjPRS7I7acz3i"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (18.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$9WrciRDtjtaJT6kd4OP6SeV98Ucq8Dnf0IMXu3kX0yrNyL71mwiRG"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$5Rd281ih1m/YIaHTpmKF5eE4TKNU.9LedUVWWB3BC8oCYVo0okDl."], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (14.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.4ms) ROLLBACK  (1.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (6.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 11ms (Views: 3.7ms | ActiveRecord: 6.1ms)  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (77.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (7.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (30.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.0ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$3gA6UJrGmYXwAbDLJGHHRuZsTSRQyF5cjTTCZtzZ7dO9sr.wwdu.y"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (8.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$IUDNPO9GHVhRpioFw4L73.sXoOTTbBiLxOvDy0IwtZ46mzAXj2F8."], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]] SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 9]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] Completed 201 Created in 27ms (Views: 5.8ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.7ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.9ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (11.4ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$H1WM.NWcFWUSzv9IavzXIu3qo2kU9dwHytmp/.KDMoMActSVXMez2"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (13.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 9]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.1ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.5ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TLN6.UUebEmhL5SvS8wcI.7UR9yv6DRRWKnDrBTQAiG8H.2OVmKEK"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]] SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Testy"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 10) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (16.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'w541YDfZmX42xytx1iVq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 10 [["authentication_token", "w541YDfZmX42xytx1iVq"], ["updated_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 10]] Completed 201 Created in 140ms (Views: 6.8ms | ActiveRecord: 89.3ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (13.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$fA7txZPtf.vui1mnCYg9ouMw8O3wNDzoRgZ1Jeg6LxP3/Yq4j0yde"], ["updated_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00], ["name", "Testy"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:25 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 17ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (4.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (5.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$c11B29dDG1wf7vDd2Xaafes7v51Kb1QshSBjT/jysSyVNnbifkafO"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (5.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["user_id", 13]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$bNtubtA4RZCZfN.EGMN8X./sz8xVDnJMKPcIUsl5.g13hCS5zh2YC"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$pnhNftjd8l19ZBqNYeWxO.ybZx6nTXueG8mAtwz.bmdqifmtQhmVO"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.3ms) CREATE SCHEMA "www"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TXUSD4y5XV2HLpJWbwic' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "TXUSD4y5XV2HLpJWbwic"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.8ms) ROLLBACK  (6.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (80.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$XmJJsi9xxZ1v2.wg5lNcC.XvzkSp5HQUjqx1nBa9FuXG8oZ9bkmVu"], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["user_id", 1]]  (10.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 70ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (28.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$i5P.eG5V.UrzBZulYIuCk.pCaKP3zyzNFiCNO8duN4oumBqZOS.gO"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (18.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (22.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 140ms (Views: 75.3ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.9ms) ROLLBACK  (0.8ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$67uZhVFM0fUaXVzYlN3a2enmDxLQNgEgbFVMLjHB8zd3ToCU0uQ.2"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (9.5ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$WxFAbPicXvMXrniOu6R25uQjcH3nzMfmaKbp/pUil3qAiiGin97m."], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 4]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (24.0ms) ROLLBACK  (2.0ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$GZsHf8Q3FEbghf5844Feeeu6KGlWjLcSAfKKtkfAI/ImyOTR/GH/6"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (14.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$srWOFr7cDrhHkU4wFOixPuJNN8qdAtHO/SH6El3IQRK6Z9anpipuK"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (5.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 6]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (27.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.3ms) ROLLBACK  (2.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$GlM1Hl28likGK9GYUd5fgeOAJD0M6a87r8RyFrAboIiaBPSC5hbwm"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (13.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (55.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (16.0ms) ROLLBACK  (3.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$wPZvaDD49Re/AJRLqzVi4.3eBl482bM4VpCuWlE0CR3EUcbtiK0DG"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 8) LIMIT 1  (2.4ms) CREATE SCHEMA "test"  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.9ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'er1QxSqPXnp4WFWKDq4o' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 8 [["authentication_token", "er1QxSqPXnp4WFWKDq4o"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 8]] Completed 201 Created in 137ms (Views: 7.5ms | ActiveRecord: 79.3ms) Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.4ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$VyK4GnN/wKcX6c04sktfXuLMdF5xeDXdneQgg5uSC0fRNoa9K2Adi"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (2.7ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 38ms (Views: 0.4ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$QVSkmw5ZN2bg8kBNs3lXOeMpDmRpZW6./YJNRrx98yBvz5z0T2I0q"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (8.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$/xUbWwco5NZzMzyaAdHi/elPRfHoCOpbVslqQtF17EVkD6AR5UspW"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (2.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 11]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] Completed 201 Created in 29ms (Views: 6.5ms | ActiveRecord: 9.0ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (16.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.9ms) ROLLBACK  (3.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (37.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.5ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (97.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (2.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$.iNnEXmn.nBStvgoTvGF.O8OwxfvRO72./WeoUuIBubS7vwUV4A82"], ["updated_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.8ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]]  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.9ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.8ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$kmZZyrpsWxlz6EfM0rrR/.wrn6mbIsAkH9xHzAe2sHPvOexccyodi"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$E4fvPj7gzfjbvIAzzbF4k.5HcEFLBw0DA2SBdi3lGDjzlr5e9Bwpa"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TMwwPLoN2fMso054HOuG1.7Gxa5Op7h2o6EvmNx7phxj2d96ivkvq"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ENkuv9kppFzFNeAx1We9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "ENkuv9kppFzFNeAx1We9"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.2ms) ROLLBACK  (7.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (21.8ms) ROLLBACK  (21.7ms) BEGIN Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.7ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (82.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.7ms) BEGIN  (2.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$79veX2r.EsEBXZftYxiXSurUpmTKkPcT1aoYGtjxLxilvHIL/0g4S"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]] SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (43.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.2ms) ROLLBACK  (2.5ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Mj/vzTCE4dBhWSVKbxwovuSxoqxyLOn0LMG4ZTm88kAlr6b2Wxbi2"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["user_id", 2]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (9.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (13.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 46ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 66ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (12.9ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$nQI8PGpZyTSoEzQFC52BrOOvwnBunibA..dMS8lAAU.pjhPj9KBxu"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$dNZk9TEcvM0opiseBd/F1.E1Z1TPq79KA0gZpzoNDeR8jWCJnZgWi"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (8.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (10.6ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$DZyNLnsW0Geyv8P/zPLzUuqWXVHyyaHuTLccfGTi3w6Z3MwczfJIa"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 5]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test4"  (14.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.5ms | ActiveRecord: 1.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (7.5ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$8rvY3AASVWWe/nVZVv.rpu0eWuLRyclqOQ06Wg.daLX1c71h0nb.G"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 58ms (Views: 41.1ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (8.1ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$1neYThsq4z.ofDOyG1g7SOZUoOUuUGQZsm8HXLVu3MQvssHsXNIiq"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test6"  (7.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] Completed 201 Created in 18ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (14.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$naHVOx3MBiYiDigdweuKpuT5mLrxPsu2xOpL3SaTvygYqb8IzipGi"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["user_id", 8]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test7"  (24.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (6.6ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$QcRumI.QaowqpTM21sRlLOQ.sy7x45KdNMSHWCwnP.hRY0QBt4e1C"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.6ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 26ms (Views: 0.4ms | ActiveRecord: 9.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$UEmXr2X7r9GQit4yNQUUGuqtvBdby3UlBC8qDDaeRvSCcAkyKYpEW"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Testy"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 10) LIMIT 1  (14.0ms) CREATE SCHEMA "test"  (10.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7Suba2XDKBauRygUY7Fm' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.4ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 10 [["authentication_token", "7Suba2XDKBauRygUY7Fm"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 10]] Completed 201 Created in 148ms (Views: 7.4ms | ActiveRecord: 92.5ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (11.6ms) ROLLBACK  (0.3ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$vyx0XFhwyphvJIQZvs9AGePhPkQkkQyq//AslmPq/BCByCAMf3pSy"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$l1byPp0LSnAaHCi1Ss/mzuf.ZujjNocyTT.JGXbzOnmgC5x.6z3ri"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$v93oCDM.y/BGWSIbd7NACevR.89ad5KZXfNTioXB8BtDLZnKHNQB."], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (18.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yRGdCtk79KJUP1qutjsf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "yRGdCtk79KJUP1qutjsf"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$6hN3NuAjW3RBRQxHGTvYIezk2d3M5SG/QkfJA0M41HQF7SUUf4nHW"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:54:05 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CbsUvf.dMDv/RmQXoSDkSeAtYFt5CuZdvuVnlQ440nriAtZwGnnbu"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]] SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 15]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 15]] Completed 201 Created in 24ms (Views: 6.6ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (5.6ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.0ms | ActiveRecord: 1.0ms)  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (2.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (23.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (3.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.SRtkxsIlNdZhSZFZ/FaYuz4Xes8kWXYLI4aJsRq9rs58TrPhuFlK"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]] SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]]  (5.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:59:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 286ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:59:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$N8DVE2sI7xuCx2Np78GciejGDEYbZk6qoUUbRUkH1HQJoQNZhfD8W"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]] SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (14.9ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 1]]  (3.7ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (5.8ms) CREATE SCHEMA "test"  (12.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cRAKEmp4uSkPFXG2kvGu' LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'cRAKEmp4uSkPFXG2kvGu', "updated_at" = '2013-07-11 22:59:39.277051' WHERE "public"."cadenero_accounts"."id" = 1  (0.7ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 466ms (Views: 2.0ms | ActiveRecord: 113.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.5ms) ROLLBACK  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (10.7ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SoC1YY.NQO8jkMw6YCAom.UVFr4HBRKpE0VKVQVCBM7/Kb6SOavGO"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:59:39 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/7MVzwPVzl257Oz3xq.g7.GXWTLCdNCS00/wcNKYM3qp8li4tvp5m"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]] SQL (9.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 2 Completed 201 Created in 184ms (Views: 47.6ms | ActiveRecord: 14.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.9ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ZvJBBoFf2DyTo.tRYd3hS.iP9c4VvTPtCYQ0/ghyEi8sIwCcKEzS2"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]] SQL (4.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (5.8ms) RELEASE SAVEPOINT active_record_1  (5.3ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:40 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (5.0ms) ROLLBACK  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (22.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.3ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.3ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (45.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (1.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Zopi8FfYJfN0.5252pNouOICqsvxevypEauJXS8dtji2WEbfsM6fC"], ["updated_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$wwFhsWqrKtjBUwyT/2.d8uyC465anX7jQ/lafl3i50LuIZ2bzoEWS"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1tvV6/pb.8e.fWPfErgKKeCQuRkCce83WlguhXEjxWGxfOl83jXzG"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Q9Rw1F6YgH8xtedZbEec' LIMIT 1  (0.9ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Q9Rw1F6YgH8xtedZbEec', "updated_at" = '2013-07-11 22:59:45.233571' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.1ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MTMVm6PPUj9FO.OFCTclu.bxs/SkeyTSj4BKzdoa1DXnvTNB/6IDK"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1  (4.1ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$jx7KGfUuhxJym83d8f2s/u2axOFriPayPSuzVvIZr2A5VDflwLUEm"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 110ms (Views: 4.8ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.1ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bRZMpVmwarMr2Zw11Zn3F.kLwbosdm8b4nNoHqk2dgvx3ik1NTnHW"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.4ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$xLQ29PnVUAy6AI6ogws0z.t882ni7CTsKqsIANTZJrV0GIPUIdAQ6"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.nuTFz7ovvy0EkBzMi3Uj.r1T1BMLXGT2ErJ5eG1fW0p3J58l3ERC"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mEFSxXX0u4DeZLG./9FeNulngl5Rbf75t/09wn3d0F/Ywsvw6WgNS"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (3.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (12.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (11.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (34.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (3.7ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$s2EZJ6C3njxopKBFhZxhXuOA3HRkZfCyKCAY/j924hettIUrDtrza"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test9"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (12.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 162ms (Views: 21.4ms | ActiveRecord: 10.0ms) Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (11.3ms) ROLLBACK  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL