spec/dummy/log/test.log in cadenero-0.0.2.a2 vs spec/dummy/log/test.log in cadenero-0.0.2.a3

- old
+ new

@@ -1,564 +1,6000 @@ Connecting to database specified by database.yml -  (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.7ms) 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; -  (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 +  (3.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 +  (15.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (26.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 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (6.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (7.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", Sat, 29 Jun 2013 03:32:52 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:32:52 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:32:52 -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} +  (11.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 +  (3.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 265ms (Views: 0.4ms | ActiveRecord: 21.8ms) + Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.7ms) 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.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.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 -  (31.2ms) 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.3ms) BEGIN -  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  -  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" -  (0.5ms) SAVEPOINT active_record_1 - SQL (87.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$c2O1fFngqlHIBrfKbUDTpuTgk6VMl4ac6koZcs6QyPsGBgMRAdsP2"], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00]] +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:32:53 -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 (6.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (14.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 03:32:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HAKWCIa0AjcR/IjHqVhHbOfCGGPzFNY70Dwhb.Dt9LHCuyp0OABre"], ["updated_at", Sat, 29 Jun 2013 03:32:53 UTC +00:00]] + 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", Sat, 29 Jun 2013 03:32:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:32:53 UTC +00:00]] +  (1.5ms) 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", Sat, 29 Jun 2013 03:32:53 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 03:32:53 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.5ms) 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" +  (8.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.3ms) 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") +  (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.5ms) 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") +  (13.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) +  (16.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (23.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (15.7ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (16.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (10.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ejxmmSofZbCChsRA1tWz' LIMIT 1 +Completed 201 Created in 699ms (Views: 2.8ms | ActiveRecord: 195.7ms) + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (9.0ms) ROLLBACK +  (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 +  (68.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (43.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:39:00 -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} + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.4ms) CREATE SCHEMA "test" +  (26.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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.2ms) 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.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") +  (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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.1ms) 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" = 'YxMVfeFqHST44fxWDhX2' LIMIT 1 +Completed 500 Internal Server Error in 729ms +  (5.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (6.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", Sat, 29 Jun 2013 03:39:01 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:39:01 UTC +00:00]] +  (1.3ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:39:01 -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} + Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 213ms (Views: 0.5ms | ActiveRecord: 2.7ms) + Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (24.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.4ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:40: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} + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (4.2ms) CREATE SCHEMA "test" +  (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.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.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.0ms) 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") +  (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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZDPppdVqfWT57kH5Bt1T' LIMIT 1 +Completed 500 Internal Server Error in 703ms +  (9.7ms) ROLLBACK +  (8.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (48.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.0ms) BEGIN +  (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" = 'test' LIMIT 1 + SQL (6.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", Sat, 29 Jun 2013 03:40:39 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:40:39 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:40: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} + Cadenero::V1::Account Exists (12.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 234ms (Views: 0.3ms | ActiveRecord: 12.6ms) + Cadenero::V1::Account Load (14.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (13.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (27.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (3.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (23.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:42: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} + Cadenero::V1::Account Exists (13.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.4ms) CREATE SCHEMA "test" +  (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) +  (4.9ms) 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") +  (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)  +  (2.6ms) 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") +  (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)  +  (0.9ms) 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') +  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sspxYgdAxNxAzC3rsjJC' LIMIT 1 +Completed 500 Internal Server Error in 768ms +  (6.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (61.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" = 'test' LIMIT 1 + SQL (5.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", Sat, 29 Jun 2013 03:42:59 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:42:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:42: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} + Cadenero::V1::Account Exists (10.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 251ms (Views: 0.7ms | ActiveRecord: 10.5ms) + Cadenero::V1::Account Load (15.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (41.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (36.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.3ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:44:36 -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} + Cadenero::V1::Account Exists (4.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (9.7ms) CREATE SCHEMA "test" +  (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) +  (3.5ms) 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") +  (7.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)  +  (13.8ms) 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") +  (13.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (11.1ms) SELECT version FROM "schema_migrations" +  (0.8ms) 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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kpBotXQKpisgjRpTPaN2' LIMIT 1 +Completed 500 Internal Server Error in 881ms +  (3.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (56.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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 + SQL (8.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", Sat, 29 Jun 2013 03:44:37 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:44:37 UTC +00:00]] +  (1.4ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:44:37 -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} + Cadenero::V1::Account Exists (8.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 256ms (Views: 0.4ms | ActiveRecord: 8.0ms) + Cadenero::V1::Account Load (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (8.0ms) ROLLBACK +  (2.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (18.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (54.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:56: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} + Cadenero::V1::Account Exists (2.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (9.1ms) CREATE SCHEMA "test" +  (13.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") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (9.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.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.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') +Completed 500 Internal Server Error in 758ms +  (11.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" = 'test' LIMIT 1 + 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", Sat, 29 Jun 2013 03:56:05 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:56:05 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:56: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} + Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 301ms (Views: 0.7ms | ActiveRecord: 2.4ms) + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (5.7ms) ROLLBACK +  (1.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (6.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (19.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (2.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 (8.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", Sat, 29 Jun 2013 03:58:03 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:58:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) SAVEPOINT active_record_1 - Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 - SQL (2.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", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00]] +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:58: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} + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 458ms (Views: 0.4ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (1.4ms) ROLLBACK +  (1.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (29.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:58: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} + Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.3ms) CREATE SCHEMA "test" +  (16.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") +  (0.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.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") +  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Completed 500 Internal Server Error in 311ms +  (4.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (10.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (1.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (17.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", Sat, 29 Jun 2013 03:58:53 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 03:58:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:58:53 -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} + Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 518ms (Views: 0.4ms | ActiveRecord: 8.7ms) + Cadenero::V1::Account Load (11.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (1.9ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (18.5ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 22:58:54 -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} + Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.4ms) CREATE SCHEMA "test" +  (15.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") +  (2.8ms) 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.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") +  (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)  +  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Completed 500 Internal Server Error in 297ms +  (4.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (7.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:00:15 -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} + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.3ms) CREATE SCHEMA "test" +  (14.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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (4.6ms) 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)  +  (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.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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.5ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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') + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jSNpZJK9yA34hyRuAZrr' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 - SQL (3.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", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["user_id", 1]] + SQL (3.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$r4Vz5UnL2j9GWZ7TB.ycwuC6DPl5tZsWUW602H/Q8/HC52DLKzHQW"], ["updated_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00]] + SQL (1.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", "jSNpZJK9yA34hyRuAZrr"], ["created_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:00:16 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 760ms (Views: 3.3ms | ActiveRecord: 100.3ms) + Cadenero::V1::Account Load (15.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (17.0ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (60.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (5.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) 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 (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", Sat, 29 Jun 2013 04:00:16 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:00:16 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:00:16 -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} + Cadenero::V1::Account Exists (8.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 187ms (Views: 0.3ms | ActiveRecord: 8.7ms) + Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (40.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (12.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 45ms (Views: 12.5ms | ActiveRecord: 0.0ms) +  (1.3ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.6ms) 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) +  (26.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (22.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (22.3ms) ROLLBACK +  (26.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (34.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:00:46 -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} + Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.3ms) CREATE SCHEMA "test" +  (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) +  (6.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") +  (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)  +  (4.7ms) 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") +  (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.5ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.6ms) 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" = 'dbsUHsxT9p1PPaJDpjjg' LIMIT 1 +  (2.3ms) SAVEPOINT active_record_1 + SQL (6.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$6V8CXhvsvPclIbj/WCU3B.DIztIlq38upREYT6Lbv6Qh9IYqGSI.O"], ["updated_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00]] + SQL (3.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", "dbsUHsxT9p1PPaJDpjjg"], ["created_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00]] + SQL (7.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", Sat, 29 Jun 2013 04:00:46 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00], ["user_id", 1]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 599ms (Views: 1.9ms | ActiveRecord: 86.8ms) + Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (8.8ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (44.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (13.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (50.2ms) 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 (3.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", Sat, 29 Jun 2013 04:00:46 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:00:46 UTC +00:00]] +  (13.9ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:00:46 -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} + Cadenero::V1::Account Exists (6.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 165ms (Views: 0.4ms | ActiveRecord: 6.5ms) + Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (5.4ms) ROLLBACK +  (2.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (44.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (8.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (4.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) 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", Sat, 29 Jun 2013 04:00:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$96Qer8O8SFiI.6X8mBBcfublO644tIybBBWHyGHuQRJBbAfCJJkNa"], ["updated_at", Sat, 29 Jun 2013 04:00:52 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" = 'test1' 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", Sat, 29 Jun 2013 04:00:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:00:52 UTC +00:00]] +  (0.2ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:00:52 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:52 UTC +00:00], ["user_id", 1]] +  (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", Sat, 29 Jun 2013 04:00:52 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$RdOpmPdgWN15ep/wqi07PuY342qyyB.JS1PYqSZSWxwIV1Hbzrl7i"], ["updated_at", Sat, 29 Jun 2013 04:00:52 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", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$f9t8HfCk4VMao.0YDLZ3FuNmI0uTy8ZKgfYb198NTdaD.mRDYULVi"], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xOQrIX8/DrsB4pxZj4FjPO/bG5bE3S0c/z9caWf2Bf0zTvJl1Qi8m"], ["updated_at", Sat, 29 Jun 2013 04:00:53 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", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$myvGvwFE/XOXrz4c9nkZq.3SrzDcAByjgO5aT6VXVReyoih48UssG"], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:00:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (15.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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.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.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") +  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (6.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.4ms) 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" = 'anpkFf5P7ZxeUzaugGGn' LIMIT 1 +  (0.6ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'anpkFf5P7ZxeUzaugGGn', "updated_at" = '2013-06-29 04:00:53.181191' 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"  +  (5.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$0QjUiOWPnT9uekMSfUEWcu5c1lyd21jFTQwb.bLBbOow9SGEFIJji"], ["updated_at", Sat, 29 Jun 2013 04:00:53 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.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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:00:53 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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (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") +  (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)  +  (2.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") +  (13.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.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-06-28 23:00: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) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:00:53 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user3@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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" = 'user3@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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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 +Completed 201 Created in 150ms (Views: 32.1ms | ActiveRecord: 3.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:00:53 -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 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (6.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN  (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", Fri, 28 Jun 2013 04:51:44 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 28 Jun 2013 04:51:44 UTC +00:00]] + SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$uWnhSwe2TXE/Fada0nptkOgaCEc3nSY0IIiMZJFb1B.SleYpzp3my"], ["updated_at", Sat, 29 Jun 2013 04:00: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" = '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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:00:53 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", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:53 UTC +00:00], ["user_id", 1]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (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") +  (2.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") +  (5.1ms) 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) +  (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.2ms) SELECT version FROM "schema_migrations" +  (0.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/sessions" for 127.0.0.1 at 2013-06-28 23:00:53 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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 + 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.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 +Completed 201 Created in 120ms (Views: 8.4ms | ActiveRecord: 2.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:00:54 -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 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:00:53Z","email":"user4@example.com","id":1,"password_digest":"$2a$10$uWnhSwe2TXE/Fada0nptkOgaCEc3nSY0IIiMZJFb1B.SleYpzp3my","updated_at":"2013-06-29T04:00:53Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007f82835a5ef8> +user_signed_in?: true +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:00: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.2ms | ActiveRecord: 0.0ms) +  (8.4ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$v061G34mZRUWUk2c3AHqm.NqDcHHVmOwcswHCCWVBDYp4tpmisza6"], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (1.5ms) CREATE SCHEMA "www" -  (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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (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 (19.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", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (27.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", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (15.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") +  (15.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (9.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) +  (12.3ms) 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)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (13.2ms) SELECT version FROM "schema_migrations" +  (0.8ms) 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') +  (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", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$l4ve0m4q0RnmzW41lVbKVeCP7Ik/YOdqvXlQ7cK3vqa4epDRYWjpS"], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00]] +  (0.3ms) 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 (0.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", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00]] +  (0.1ms) 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", 2], ["created_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:54 UTC +00:00], ["user_id", 2]] +  (6.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:00: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-06-28 23:00:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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 +Completed 422 Unprocessable Entity in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms) + Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (10.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", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$m1AUQkq2nooDy3Ee.YeUkuSIVIlY9X.1gfIcZpZVYYpfYVJ/tY9pG"], ["updated_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00]] +  (15.6ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) 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.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", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:00: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", 1], ["created_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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)  +  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (11.5ms) 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.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") +  (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)  +  (13.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (5.6ms) 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-06-28 23:00: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-06-28 23:00:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms) + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.6ms) ROLLBACK +  (8.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.6ms) BEGIN +  (1.2ms) SAVEPOINT active_record_1 + SQL (5.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ru19GMZArj3d2tgNULs.duusHYq85yAtCDNpHpuVshga.jZVbowre"], ["updated_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00]] +  (5.7ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (15.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.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", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:55 UTC +00:00], ["user_id", 1]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (1.4ms) CREATE SCHEMA "test7" +  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.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) +  (6.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") +  (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)  +  (2.0ms) 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" +  (3.9ms) 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-06-28 23:00: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-06-28 23:00:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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 5ms (Views: 0.4ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.9ms) BEGIN +  (13.6ms) 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", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$S9YAcFlox.vzCBkvwcFfHezbRn0jZdYK08iNP1Nml8oLhhHjOxjsu"], ["updated_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (7.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.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", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["user_id", 1]] +  (1.3ms) RELEASE SAVEPOINT active_record_1 +  (4.4ms) CREATE SCHEMA "test8" +  (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)  +  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (15.3ms) 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) +  (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (12.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (13.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)  +  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (5.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') +  (3.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-06-28 23:00:56 -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' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (25.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$pTTFMIMKwfamnbVYvydI6ev/9QduYKvefmGQkpav8xFuGE6Fbz1n6"], ["updated_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00]] + SQL (4.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", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:00:56 UTC +00:00], ["user_id", 2]] +  (2.0ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (2.1ms) 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 (0.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" = 2 +Completed 201 Created in 233ms (Views: 12.5ms | ActiveRecord: 35.8ms) + Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.1ms) ROLLBACK +  (5.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (25.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (8.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (21.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (6.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (21.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ymcVOWiWWRyi7MTSxwT17.jRomxS/5lF/m7ugAPiEBNWz3YXyJpM2"], ["updated_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00]] +  (0.6ms) 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" = 'test1' LIMIT 1 + SQL (4.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", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.3ms) SAVEPOINT active_record_1 + SQL (3.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", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.8ms) CREATE SCHEMA "test1" +  (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.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.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.4ms) 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.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.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') +  (8.5ms) 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-06-28 23:03:22 -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 (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (1.3ms) SAVEPOINT active_record_1 + SQL (19.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vESmaiUZIZ.7cxV1b9GBrOj3YdEJRpHyVm17ZNezhLvD8M828qOg6"], ["updated_at", Sat, 29 Jun 2013 04:03:22 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", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:22 UTC +00:00], ["user_id", 2]] +  (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::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (5.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" = 2 +Completed 201 Created in 259ms (Views: 44.3ms | ActiveRecord: 32.6ms) + Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.9ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (2.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.9ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (53.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.8ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1/WQ9msNWb0wWoliOFFHNucOc8x/1TndrEmaOnF8k.EOIyrW0CY4K"], ["updated_at", Sat, 29 Jun 2013 04:03:28 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" = 'test2' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:03: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", 1], ["created_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["user_id", 1]] +  (0.1ms) 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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$gphqF1VrVTcDokn7SYECA.eJUGZ8xyIydFAFm8S5Mnr7FnkKjDKwi"], ["updated_at", Sat, 29 Jun 2013 04:03:28 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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$GvecLq6iABGuv1LlY3oGHOTKuoGj4FpPRRSRQVj3iRw99Zbq5K0Ni"], ["updated_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "www" +  (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.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.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") +  (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)  +  (0.6ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) 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" = '9RdqTHeqRcDGMnh8zsmm' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (7.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '9RdqTHeqRcDGMnh8zsmm', "updated_at" = '2013-06-29 04:03:28.722800' WHERE "public"."cadenero_accounts"."id" = 2 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (5.9ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$dCSiy8TC3VwI5DDtS18OVe3DRBb5tNec0c05AYcU4q9u0WytRRoka"], ["updated_at", Sat, 29 Jun 2013 04:03:28 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 (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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00]] +  (0.5ms) 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", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:28 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (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.6ms) 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.4ms) 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") +  (8.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.6ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.7ms) 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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$JCYP8idnXTfnVy3mt/vqa.ud.qB.EEcmDXlB4MXosloLU4rmDpOWq"], ["updated_at", Sat, 29 Jun 2013 04:03:29 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:03: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", 2], ["created_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:03: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.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:03:29 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user5@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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 +Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.8ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.9ms) BEGIN +  (3.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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$ASLt8ULN6EjLrsaJ04kvk..M651EEAaCG44NPTxwxBGBlwIWy3rHW"], ["updated_at", Sat, 29 Jun 2013 04:03:29 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 (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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:03:29 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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) 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) +  (6.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") +  (8.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.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") -  (13.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) +  (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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.5ms) 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-06-28 23:03: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-06-28 23:03:29 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (1.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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.8ms) + 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.2ms) ROLLBACK +  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.6ms) 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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$.8p4c6tqpCDeMeUJTK6BMurcjGVKmuwv9wOQuUewGVUCcalRGckUi"], ["updated_at", Sat, 29 Jun 2013 04:03:29 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" = 'test6' 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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00]] +  (0.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", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:29 UTC +00:00], ["user_id", 1]] +  (2.6ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) 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) +  (1.3ms) 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") +  (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)  +  (3.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  -  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.0ms) 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-06-28 23:03: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-06-28 23:03:29 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | 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' LIMIT 1 +  (4.5ms) ROLLBACK +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (1.5ms) SAVEPOINT active_record_1 + SQL (10.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$K18iFQv11A94xjrFwoxSE.YJgY9QV/T8iV3aenELxyr3AmjIL1Pfu"], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (27.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", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00]] +  (2.5ms) 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", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test7" +  (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) +  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (14.6ms) 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.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.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.9ms) 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.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-06-28 23:03:30 -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-06-28 23:03:30 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user8@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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" = 'user8@example.com' LIMIT 1 + Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (7.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 +Completed 201 Created in 277ms (Views: 14.7ms | ActiveRecord: 14.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:03:30 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (1.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: 1.5ms) +  (8.6ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (2.7ms) 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", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$eNToBuW9ciJuCxOK7qeaoOu2hPXOFgIdkJGZmbQ2PGRswHDeFFIMK"], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (7.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (3.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", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00]] +  (1.8ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:30 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (11.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) +  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (7.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)  +  (4.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (18.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (33.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (4.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.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-06-28 23:03:31 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user9@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (2.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" = 'user9@example.com' LIMIT 1 + Cadenero::User Load (15.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (7.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 +Completed 201 Created in 191ms (Views: 9.0ms | ActiveRecord: 34.2ms) + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:03:31 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:03:30Z","email":"user9@example.com","id":1,"password_digest":"$2a$10$eNToBuW9ciJuCxOK7qeaoOu2hPXOFgIdkJGZmbQ2PGRswHDeFFIMK","updated_at":"2013-06-29T04:03:30Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007ff9b2811448> +user_signed_in?: true +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:03:31 -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 19ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (6.8ms) ROLLBACK +  (6.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:03:31 -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} + Cadenero::V1::Account Exists (17.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (2.0ms) 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) +  (21.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (17.7ms) 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)  +  (9.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") +  (12.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) +  (12.1ms) 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.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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sLHoJ4msSAyV8fW15ShG' LIMIT 1 -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  -  (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 -  (12.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 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mYsP589QEDk2KZoppuNw' LIMIT 1 +  (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", Sat, 29 Jun 2013 04:03:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$lE8m6vcl4N/7uzcqy0CCdOiykGxT2.CsMHk35n7r6tlW/03deomK."], ["updated_at", Sat, 29 Jun 2013 04:03:31 UTC +00:00]] + SQL (3.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", "mYsP589QEDk2KZoppuNw"], ["created_at", Sat, 29 Jun 2013 04:03:31 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:03:31 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", Sat, 29 Jun 2013 04:03:31 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:03:31 UTC +00:00], ["user_id", 1]] +  (8.0ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 455ms (Views: 3.1ms | ActiveRecord: 197.6ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (7.3ms) ROLLBACK +  (3.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (46.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.3ms) BEGIN +  (2.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:03:32 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:03:32 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:03:32 -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} + Cadenero::V1::Account Exists (11.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 170ms (Views: 0.3ms | ActiveRecord: 11.2ms) + Cadenero::V1::Account Load (13.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (4.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) +  (13.3ms) ROLLBACK +  (7.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (9.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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.2ms | ActiveRecord: 0.0ms) +  (2.9ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (54.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL Connecting to database specified by database.yml -  (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.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test' -  (19.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 +  (12.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (1.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" -  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  -  (0.2ms) SAVEPOINT active_record_1 - SQL (9.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:53:34 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$g630V4EW/5n.Le6sXTTCDeo5SWafa/dIgZwrR3J6wPm4E37av8d2i"], ["updated_at", Fri, 28 Jun 2013 04:53:34 UTC +00:00]] +  (13.0ms) SAVEPOINT active_record_1 + SQL (29.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:04:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$WwQp9uhaEpyy5zEqUNlpUexV1dSD8.lPMoHeyGStD5ZTSPNdM5bwK"], ["updated_at", Sat, 29 Jun 2013 04:04:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (10.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (10.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:04:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:04:36 UTC +00:00]] +  (13.1ms) RELEASE SAVEPOINT active_record_1 +  (5.2ms) 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", Sat, 29 Jun 2013 04:04:37 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:37 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.1ms) CREATE SCHEMA "test1" +  (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)  +  (1.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") +  (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.7ms) 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") +  (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.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.5ms) 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/sessions" for 127.0.0.1 at 2013-06-28 23:04:37 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 + Cadenero::User Load (5.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" = 'user1@example.com' LIMIT 1 + Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (18.3ms) 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 308ms (Views: 97.9ms | ActiveRecord: 33.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:04:37 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:04:36Z","email":"user1@example.com","id":1,"password_digest":"$2a$10$WwQp9uhaEpyy5zEqUNlpUexV1dSD8.lPMoHeyGStD5ZTSPNdM5bwK","updated_at":"2013-06-29T04:04:36Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007f8af4fb3750> +user_signed_in?: true +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.0ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:04: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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (19.8ms) ROLLBACK +  (14.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (10.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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$tkUPIkKmj/ZhlnOhAqfeo.XaZbnapJp/cvoyG/Ii6bMZLa0zKAT9m"], ["updated_at", Sat, 29 Jun 2013 04:04:38 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" = 'test2' LIMIT 1 + 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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00]] +  (6.0ms) RELEASE SAVEPOINT active_record_1 +  (3.2ms) 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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (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) +  (9.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") +  (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)  +  (3.3ms) 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.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) +  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.0ms) 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 GET "/v1" for 127.0.0.1 at 2013-06-28 23:04: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-06-28 23:04:38 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 9.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (9.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (8.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.2ms) BEGIN +  (5.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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$OJcCYX2ChnV3sXqjzucyeO7vXrKJT42DZtNUqVYOY0Iusjuq0msIC"], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00]] +  (12.0ms) RELEASE SAVEPOINT active_record_1 +  (11.4ms) SAVEPOINT active_record_1 + SQL (3.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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["user_id", 1]] +  (7.2ms) RELEASE SAVEPOINT active_record_1 +  (3.5ms) CREATE SCHEMA "test3" +  (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) +  (13.7ms) 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.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.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") +  (10.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.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')  (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.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", Fri, 28 Jun 2013 04:53:34 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 04:53:34 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$5R9QLR8xA2c7qISFwPTqmuLscD8Lqax30tYb4Xpu.1nIe0ba3nsa."], ["updated_at", Sat, 29 Jun 2013 04:04:38 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (11.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", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:38 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:04: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-06-28 23:04:38 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (18.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (3.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", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$m0JFs3L11sp44AwhQBXbq.C5wwrQLMKhmgIVYsMnQ1GGO.OQV7UES"], ["updated_at", Sat, 29 Jun 2013 04:04:39 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" = 'test5' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:04:39 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", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["user_id", 1]] +  (4.7ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test5" +  (13.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.2ms) 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)  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (19.7ms) 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)  +  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (2.8ms) 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-06-28 23:04:39 -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.5ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:04:39 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user5@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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 + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 227ms (Views: 5.9ms | ActiveRecord: 13.6ms) + Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:04:39 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 8.1ms) +  (28.5ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (2.5ms) SAVEPOINT active_record_1 + SQL (8.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$qJ2xgdqfw/MtVK5SS3Wum.0YzPvIjj68fioRFumJKtCgptdu9GuVi"], ["updated_at", Sat, 29 Jun 2013 04:04:39 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:04:39 UTC +00:00]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (7.7ms) SAVEPOINT active_record_1 + SQL (7.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", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:39 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (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) +  (10.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") +  (24.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)  +  (21.2ms) 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") +  (7.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.7ms) 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-06-28 23:04: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-06-28 23:04:40 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (0.5ms) 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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.5ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (38.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (8.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$iKJEbbeLvcOieia.S0h0.eYw6Ost74ln7fUUFwcCD0Lgdhk0O2z2i"], ["updated_at", Sat, 29 Jun 2013 04:04:45 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" = 'test7' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:04:45 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 28 Jun 2013 04:53:35 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:53:35 UTC +00:00], ["user_id", 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$XlYnbXxS3W1cpj0c.fdWC.72HiLA5HR1M.22NTLAS4hnDC6ZfEeFu"], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", Fri, 28 Jun 2013 04:53:35 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$7xHX1GafzllXenf7RZ7ncuLuvLy0bB6UZVEi.r5PMXOUubUWyY2ha"], ["updated_at", Fri, 28 Jun 2013 04:53:35 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$RrDUbgFS2cm3ffQWmdAKi.jg6WGYHVQlMGOc3/ICyrqT6DYxBzF7."], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 -  (0.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 -  (14.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 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "www" +  (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") +  (7.3ms) 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") +  (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) +  (3.2ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) 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" = 'pTA2srJnLuADMKVppvnG' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'pTA2srJnLuADMKVppvnG', "updated_at" = '2013-06-29 04:04:45.480511' 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" +  (7.9ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN +  (1.7ms) 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$QFlGJSc2iFwsu0FBZgh0J.HVMBaqb9w4zpgB01kSDYNmtScdfoTwi"], ["updated_at", Sat, 29 Jun 2013 04:04:45 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 (1.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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00]] +  (0.1ms) 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) CREATE SCHEMA "test8" +  (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.6ms) 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) +  (2.3ms) 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.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.7ms) 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.1ms) 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-06-28 23:04:45 -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 (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ZmqshgJ2WaGuItGS4nI2ke9YeEnlarivQ2.WXgvuTXJIsSsdJ5uaW"], ["updated_at", Sat, 29 Jun 2013 04:04:45 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", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:45 UTC +00:00], ["user_id", 2]] +  (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" = 2 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + 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" = 2 +Completed 201 Created in 196ms (Views: 79.5ms | ActiveRecord: 9.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 +  (7.9ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" = 'test' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:04:46 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:04:46 UTC +00:00]] +  (7.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:04:46 -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} + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 151ms (Views: 0.4ms | ActiveRecord: 0.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' 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 -  (19.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 -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.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' -  (27.3ms) 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) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:04:46 -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} + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.2ms) CREATE SCHEMA "test" +  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.1ms) 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.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") +  (7.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) +  (12.9ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (9.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Kcj6WHxfpxz91dBXEhV3' LIMIT 1 +  (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", Sat, 29 Jun 2013 04:04:46 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$J2RrvUosQyr8cKOvZ.cNxOupUC.ylqS9dK9ubxF416DW.u819lHvG"], ["updated_at", Sat, 29 Jun 2013 04:04:46 UTC +00:00]] + 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", "Kcj6WHxfpxz91dBXEhV3"], ["created_at", Sat, 29 Jun 2013 04:04:46 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:04:46 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:04:46 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:04:46 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 248ms (Views: 1.8ms | ActiveRecord: 70.2ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (0.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 -  (39.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 -  (0.4ms) BEGIN -  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  -  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (52.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (101.0ms) 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.1ms) ROLLBACK +  (16.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (18.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.6ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (7.1ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (55.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (4.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (47.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (20.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:06:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$3Si6rWJ1TqHvMyPAO/iriObDfaNcQwoS9.ZFjLlQeiREUpU0FxRFq"], ["updated_at", Sat, 29 Jun 2013 04:06:25 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 - SQL (58.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$KKNyEefZLzMg0MyA3yMJ7emq4FeqKbQXElNK9uEOJI4/kGcy.bRL."], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00]] + Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Sat, 29 Jun 2013 04:06:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:06:25 UTC +00:00]] +  (3.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", Sat, 29 Jun 2013 04:06:25 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:25 UTC +00:00], ["user_id", 1]] +  (7.4ms) RELEASE SAVEPOINT active_record_1 +  (1.9ms) CREATE SCHEMA "test1" +  (19.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") +  (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) +  (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") +  (3.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)  +  (12.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (10.5ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:06: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 14ms (Views: 0.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:06:26 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (8.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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 +Completed 422 Unprocessable Entity in 46ms (Views: 0.4ms | ActiveRecord: 9.2ms) + Cadenero::V1::Account Load (16.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (16.3ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.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", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$udXEposqXf9.vN1TvXNypeluHA1/QMUHNAcecNr0mn7kWSI1HqdtK"], ["updated_at", Sat, 29 Jun 2013 04:06:26 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 (9.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", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (12.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", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["user_id", 1]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (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)  +  (5.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") +  (10.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.3ms) 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.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.3ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (4.8ms) SAVEPOINT active_record_1 + SQL (5.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5K/inuePuWPRYCZLrJXKbOoCWDcVtRkWVuc4LRt1x5wbxostkHz.2"], ["updated_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (3.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", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:06:26 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", 2], ["created_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:26 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:06: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.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:06:26 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user3@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (7.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 +Completed 422 Unprocessable Entity in 15ms (Views: 0.6ms | ActiveRecord: 9.5ms) + Cadenero::V1::Account Load (13.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.9ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (6.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN  (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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00]] + SQL (15.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$bJ8V8/RkW9EsvIbAq9uEuOvyrzRUj9E7U0eSfDGbx8pQpbU7AKzsm"], ["updated_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00]] +  (23.4ms) RELEASE SAVEPOINT active_record_1 +  (19.7ms) 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.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", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:06:27 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["user_id", 1]] +  (2.2ms) RELEASE SAVEPOINT active_record_1 +  (2.4ms) CREATE SCHEMA "test4" +  (10.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") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.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.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") +  (6.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") +  (3.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:06: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-06-28 23:06:27 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (4.0ms) 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 + Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 261ms (Views: 40.3ms | ActiveRecord: 7.7ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:06:27 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (0.2ms) 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.2ms) +  (8.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (78.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) BEGIN +  (5.6ms) 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", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$.1RpVqoupsfQPPq7bFp0XONSi3c.XQQ0F7MgqetSFRG9l91Mbv.Eu"], ["updated_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (10.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", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:06:27 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:27 UTC +00:00], ["user_id", 1]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (10.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)  +  (5.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (8.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") +  (0.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)  +  (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.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 GET "/v1" for 127.0.0.1 at 2013-06-28 23:06: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-06-28 23:06:28 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') 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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.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", Sat, 29 Jun 2013 04:06:28 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$CKL8iFUMZQJ0bq37c0Mpy.xDYwbtJixKZUWacXt/LLksWm86jqbQm"], ["updated_at", Sat, 29 Jun 2013 04:06:28 UTC +00:00]] +  (12.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.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", Sat, 29 Jun 2013 04:06:28 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:06:28 UTC +00:00]] +  (3.5ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:28 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (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)  +  (8.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (10.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) +  (0.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") +  (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)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (8.6ms) 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.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-06-28 23:06:28 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user6@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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 178ms (Views: 19.4ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:06:28 -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 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:06:28Z","email":"user6@example.com","id":1,"password_digest":"$2a$10$CKL8iFUMZQJ0bq37c0Mpy.xDYwbtJixKZUWacXt/LLksWm86jqbQm","updated_at":"2013-06-29T04:06:28Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007fa1f1d78558> +user_signed_in?: true +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:06: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) +  (10.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (2.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (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", Sat, 29 Jun 2013 04:06:33 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$lDwE5oytVFlpRtD/HvAQN.11eknmqEb5VPSBtGrftZwNh9gl/mOYO"], ["updated_at", Sat, 29 Jun 2013 04:06:33 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" = 'test7' 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", Sat, 29 Jun 2013 04:06:33 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:06:33 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:33 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:33 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:06:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$QsxbE65zL6s9aNOBpkIjy.EFGLuLiA0Ej6CtMX668jCgXzwdlJ4BC"], ["updated_at", Sat, 29 Jun 2013 04:06:33 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["user_id", 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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$POomm2/4B9mZUpjm7FTGTeBccniArMFD7D.0SY8MLVvQt3O.P0ZcG"], ["updated_at", Sat, 29 Jun 2013 04:06:34 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", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mGDFE2K/8Eio4JdUyla3HO9iDbWHRtHMPzdHTmf/c.qGDQTe5l1Xa"], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00]] -  (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" = '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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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) +  (2.2ms) 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.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") +  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (13.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.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') + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LbzpMHJ3nDEp8MW1kXxe' LIMIT 1 +  (0.5ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'LbzpMHJ3nDEp8MW1kXxe', "updated_at" = '2013-06-29 04:06:34.138626' 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" +  (11.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (32.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN  (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", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$8yQDi3ZSCBwcR/G6y1b/LuGQsricsl83iRbTJxeIQTmvuPoyQxWfK"], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00]] -  (0.6ms) RELEASE 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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$z.chUuQ/WVLVKwP1QLQljOMuerbHuQThHelrL.fskMsta3lJ7I.xW"], ["updated_at", Sat, 29 Jun 2013 04:06:34 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" = 'test8' 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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:06:34 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", Fri, 28 Jun 2013 04:55:15 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 28 Jun 2013 04:55:15 UTC +00:00]] + 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (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.6ms) 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.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.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.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.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (7.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started POST "//v1/users" for 127.0.0.1 at 2013-06-28 23:06:34 -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" = 'test8' LIMIT 1 +  (3.3ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hu4Bi/yZqBIxBZSeZn8JKeXgCalqu9K434gmT692P8L2rRda6iGFG"], ["updated_at", Sat, 29 Jun 2013 04:06:34 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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) CREATE SCHEMA "www" + 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 (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + 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" = 2 +Completed 201 Created in 132ms (Views: 5.6ms | ActiveRecord: 10.1ms) + 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.8ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:06: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} + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.2ms) CREATE SCHEMA "test"  (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) -  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.2ms) 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)  -  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (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") -  (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)  -  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.2ms) SELECT version FROM "schema_migrations" -  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (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) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.5ms) 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') - Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'akdHFG1ceYqD2WvqotXU' LIMIT 1 -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  -  (6.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 -  (16.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 -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' -  (24.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 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zYRqQw7qEzZQReLSsSsD' LIMIT 1 +  (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", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$zLUGLpnYZdxS5RXjH/KCcu8qMmBs8LYXa7s5HPREVqOjjlf4Pn.tK"], ["updated_at", Sat, 29 Jun 2013 04:06:34 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", "zYRqQw7qEzZQReLSsSsD"], ["created_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00]] + 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", 1], ["created_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:06:34 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 281ms (Views: 5.9ms | ActiveRecord: 45.0ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (8.3ms) ROLLBACK +  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (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 +  (3.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.8ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (25.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (2.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (63.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (1.0ms) SAVEPOINT active_record_1 - SQL (51.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:56:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$lYqgfskr.qD9iBrWlySvp.ABbNLID5aZRUqOpnrqvOv80q78MidwK"], ["updated_at", Fri, 28 Jun 2013 04:56:01 UTC +00:00]] +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (6.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", "subdomain"=>"first"}} +Completed 201 Created in 30ms (Views: 28.9ms | ActiveRecord: 0.0ms) +  (10.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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.2ms | ActiveRecord: 0.0ms) +  (1.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (45.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (8.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (32.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (25.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.3ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:08:07 -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} + Cadenero::V1::Account Exists (5.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.3ms) CREATE SCHEMA "test" +  (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) +  (1.9ms) 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") +  (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)  +  (5.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") +  (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)  +  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.7ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) 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" = 'RVvAAiyYpmn1gMxaiA6A' LIMIT 1 +  (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", Sat, 29 Jun 2013 04:08:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$P4EvLgkr2VrB2HzG4P6IWe25WKPcrfsFadBu1O7GohyrsrgeY1jHi"], ["updated_at", Sat, 29 Jun 2013 04:08:08 UTC +00:00]] + SQL (1.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", "RVvAAiyYpmn1gMxaiA6A"], ["created_at", Sat, 29 Jun 2013 04:08:08 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:08:08 UTC +00:00]] + 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", 1], ["created_at", Sat, 29 Jun 2013 04:08:08 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:08 UTC +00:00], ["user_id", 1]]  (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" = 'test1' LIMIT 1 - SQL (2.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", Fri, 28 Jun 2013 04:56:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 04:56:01 UTC +00:00]] +Completed 201 Created in 783ms (Views: 3.3ms | ActiveRecord: 122.9ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (42.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (54.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (1.6ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:08:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$6GOhZGYiW9q2Od0O9H4TKOREwQCZSs.taEIGlnawObZWrttgbAoh6"], ["updated_at", Sat, 29 Jun 2013 04:08:09 UTC +00:00]] + SQL (1.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", Sat, 29 Jun 2013 04:08:09 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:08:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:08:09 -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} + Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 187ms (Views: 0.3ms | ActiveRecord: 10.2ms) + 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 +  (2.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (9.8ms) ROLLBACK +  (1.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (32.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (2.9ms) ROLLBACK +  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (78.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$zaGco3PLfvIQp2DwH3yRE.5L7vEcxU30Qbl1p5PfxskblBKr1KIbu"], ["updated_at", Sat, 29 Jun 2013 04:08:10 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 (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", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:08:10 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", 1], ["created_at", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) SAVEPOINT active_record_1 - SQL (3.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", Fri, 28 Jun 2013 04:56:01 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:01 UTC +00:00], ["user_id", 1]] -  (2.6ms) RELEASE SAVEPOINT active_record_1 -  (4.4ms) CREATE SCHEMA "test1" -  (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)  -  (19.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") -  (11.3ms) 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) -  (4.4ms) 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") -  (11.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)  -  (3.0ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (7.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') -  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') -Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:01 -0500 +  (0.2ms) CREATE SCHEMA "test1" +  (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) +  (6.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") +  (14.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)  +  (6.2ms) 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") +  (45.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) +  (25.0ms) 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.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 GET "/v1" for 127.0.0.1 at 2013-06-28 23:08:10 -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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) -Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:01 -0500 +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:08:10 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} - 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.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" = 'user1@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::Member Load (6.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 - Cadenero::V1::Account Load (1.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 -Completed 201 Created in 199ms (Views: 29.4ms | ActiveRecord: 10.8ms) - Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 -Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:02 -0500 + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 + Cadenero::User Load (3.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 + Cadenero::User Load (6.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (5.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 297ms (Views: 72.0ms | ActiveRecord: 17.7ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:08:10 -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" = 1 LIMIT 1 -Completed 201 Created in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) -  (3.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 -  (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 + Cadenero::User Load (2.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.3ms) +  (5.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (43.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (3.6ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$sIgnyv8uKf0hDBIGbeiKaOaMHj4ZvTRUQG.iBZ3ern4rK5miI6IlO"], ["updated_at", Sat, 29 Jun 2013 04:08:10 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" = 'test2' 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", Sat, 29 Jun 2013 04:08:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:08:10 UTC +00:00]] +  (13.7ms) RELEASE SAVEPOINT active_record_1 +  (28.5ms) SAVEPOINT active_record_1 + SQL (18.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", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["user_id", 1]] +  (2.8ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) CREATE SCHEMA "test2" +  (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) +  (23.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (18.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (28.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") +  (11.4ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (1.5ms) 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') +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:08:11 -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: 1.0ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:08:11 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 3.2ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (8.6ms) ROLLBACK +  (1.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (44.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$g6L8h4m3f4sHTVsUVDV/tu8JuQ6oECgsuHxCk.8Rm3f5CvGeFH2kS"], ["updated_at", Sat, 29 Jun 2013 04:08:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:08:11 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", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:11 UTC +00:00], ["user_id", 1]] +  (2.9ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) CREATE SCHEMA "test3" +  (21.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) +  (12.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (6.3ms) 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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (25.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.7ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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-06-28 23:08:11 -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-06-28 23:08:11 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (11.8ms) 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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 18ms (Views: 0.4ms | ActiveRecord: 12.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (19.8ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (4.8ms) SAVEPOINT active_record_1 + SQL (7.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$PRH7bVCmyOmBBYTCiXzXTuX8eaz/pA95dLmADcmifZJ3hJ1RySSj."], ["updated_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:08: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", 1], ["created_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (11.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") +  (0.9ms) 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.9ms) 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.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.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-06-28 23:08:12 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (15.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" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (17.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (15.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (38.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 +Completed 201 Created in 253ms (Views: 7.0ms | ActiveRecord: 90.4ms) + Cadenero::V1::Account Load (8.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:08:12 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:08:12Z","email":"user4@example.com","id":1,"password_digest":"$2a$10$PRH7bVCmyOmBBYTCiXzXTuX8eaz/pA95dLmADcmifZJ3hJ1RySSj.","updated_at":"2013-06-29T04:08:12Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007fa0c5295cd0> +user_signed_in?: true +Completed 200 OK in 19ms (Views: 12.0ms | ActiveRecord: 1.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:08:12 -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) +  (19.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (45.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (9.6ms) SAVEPOINT active_record_1 - SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Smcv3RUIwIH1sADV9AnOsud/j7pcBAJgL1TKIfFBAM3bx7THopB3y"], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00]] -  (1.9ms) RELEASE SAVEPOINT active_record_1 +  (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", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Put43pnWiWOqDCxJB3CnbeOZjqCLHJHdUgj4r8F2w/WDQ7v5NwIyG"], ["updated_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 - Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 - SQL (2.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", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00]] + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (8.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", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:08: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", 1], ["created_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["user_id", 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", 1], ["created_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.1ms) CREATE SCHEMA "test2" -  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") -  (2.9ms) 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) -  (2.5ms) 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.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.2ms) CREATE SCHEMA "test5" +  (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)  +  (19.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (16.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) +  (3.5ms) 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") +  (11.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)  +  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.9ms) SELECT version FROM "schema_migrations" +  (1.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') +  (2.3ms) 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", Sat, 29 Jun 2013 04:08:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$D0EX12jw2K9AS7OcBwS8/evsW1.J0naJC38b4Hg42qDwkAXXsEAWy"], ["updated_at", Sat, 29 Jun 2013 04:08:13 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (1.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:08:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:08:13 UTC +00:00]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (2.6ms) SAVEPOINT active_record_1 + SQL (5.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", Sat, 29 Jun 2013 04:08:13 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:13 UTC +00:00], ["user_id", 2]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:08: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-06-28 23:08:13 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 +Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.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 +  (18.0ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.8ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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: 1.1ms | ActiveRecord: 0.0ms) +  (6.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (44.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.5ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (2.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$KmxF9BX6Dv6U3q5VElWvruM1C6I1keM1VXXVr4vpgtrYVYlqUoy82"], ["updated_at", Sat, 29 Jun 2013 04:08:18 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" = 'test7' 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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00]] +  (0.1ms) 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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["user_id", 1]] +  (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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$YMpURJa.pomtAbF4UfDVCOK3orLemxjcLGD9/o.VukaqpnKRD1W/i"], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00]] +  (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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QxpExgEiCsjzaLN8rNLnwO6wNyWIiFknmUjqv17xd8hEQENG/f0ui"], ["updated_at", Sat, 29 Jun 2013 04:08:18 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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.9ms) 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") +  (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) +  (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") +  (8.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.0ms) 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" = 'aU8NDjG555VUhuWvkQ6r' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'aU8NDjG555VUhuWvkQ6r', "updated_at" = '2013-06-29 04:08:18.618816' WHERE "public"."cadenero_accounts"."id" = 2 +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (8.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$rEO5B6KN9XJ3wPkjS4W90eYZJr3T0h3V3.5NamuxOFzD6FJc2Im9m"], ["updated_at", Sat, 29 Jun 2013 04:08:18 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:18 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (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") +  (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.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") +  (8.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.4ms) 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-06-28 23:08:18 -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" = 'test8' LIMIT 1 +  (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", Sat, 29 Jun 2013 04:08:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$rUjObeB1iISdGcCvyXzS1eOSmDOM01ZN9R4NPaZT62X1GksawPSEO"], ["updated_at", Sat, 29 Jun 2013 04:08:19 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", Sat, 29 Jun 2013 04:08:19 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:08:19 UTC +00:00], ["user_id", 2]] +  (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" = 2 LIMIT 1 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (0.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" = 2 +Completed 201 Created in 118ms (Views: 6.3ms | ActiveRecord: 3.7ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (5.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (32.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (46.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (25.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (1.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (6.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (7.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (3.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 (4.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:16:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HSqGP.fo.bn9pSUFciHbPOYwzWGGlBgXG4jaOiNeCMUhj/zW.QKCu"], ["updated_at", Sat, 29 Jun 2013 04:16:00 UTC +00:00]] + SQL (6.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", Sat, 29 Jun 2013 04:16:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:16:00 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", 1], ["created_at", Sat, 29 Jun 2013 04:16:00 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:16:00 UTC +00:00], ["user_id", 1]] +  (1.6ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 +  (0.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (55.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.9ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + 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) ROLLBACK TO SAVEPOINT active_record_1 +  (1.1ms) ROLLBACK +  (4.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (55.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (5.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (23.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (1.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK +  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (38.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (5.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:16:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$I64IcZjvPPtUOfDtfcV.teydDEVpNvefhL134/y.YNZpewv3NvImO"], ["updated_at", Sat, 29 Jun 2013 04:16:35 UTC +00:00]] + SQL (5.8ms) 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", Sat, 29 Jun 2013 04:16:35 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:16:35 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Sat, 29 Jun 2013 04:16:35 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:16:35 UTC +00:00], ["user_id", 1]] +  (0.1ms) 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 +  (0.4ms) ROLLBACK +  (5.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (47.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (22.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" = 'test' LIMIT 1 + SQL (24.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:17:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ugrfLPXnH8TPzScCtNDTmuov5FE1SEtt50Bs8TJu2ae2B8XOuvfE2"], ["updated_at", Sat, 29 Jun 2013 04:17:35 UTC +00:00]] + SQL (4.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", Sat, 29 Jun 2013 04:17:35 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:17:35 UTC +00:00]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (1.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", 1], ["created_at", Sat, 29 Jun 2013 04:17:35 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:17:35 UTC +00:00], ["user_id", 1]] +  (4.0ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (19.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 +  (0.8ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (5.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (1.5ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (79.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (13.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (5.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (21.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (21.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:17:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$OymWR2NkLK/XWw8IBG7LNekoVJoPpnpnqp8/mwBR1g76cCI1SE2MC"], ["updated_at", Sat, 29 Jun 2013 04:17:52 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" = 'test1' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:17:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:17:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SAVEPOINT active_record_1 + SQL (4.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", Sat, 29 Jun 2013 04:17:52 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:17:52 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test1" +  (13.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)  +  (12.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.6ms) 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) +  (6.6ms) 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") +  (9.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.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-06-27 23:56:02 -0500 +Started POST "//v1/users" for 127.0.0.1 at 2013-06-28 23:17:53 -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' LIMIT 1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$pEtvf949Qsb4sID8c/Zes.hNDi9k.QbOwawc9Mpy0SVVEqDV4DQC."], ["updated_at", Sat, 29 Jun 2013 04:17:53 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", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::V1::Account Load (11.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (12.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" = 2 +Completed 201 Created in 309ms (Views: 82.0ms | ActiveRecord: 33.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (17.5ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (34.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (3.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (10.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qAD41q2bAgtdr5xJWRyne.9QnAUd0nsYMsR4MUqYo0/54xGB4/B.K"], ["updated_at", Sat, 29 Jun 2013 04:17:53 UTC +00:00]] + SQL (3.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", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:17:53 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", 1], ["created_at", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:17:53 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 +  (0.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (53.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:17:54 -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} +  (12.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:17:54 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$wpFatUPGeiJKd7gNXcoub.rRKswx7pQ5ydctluGkzSVvEJdyiY79m"], ["updated_at", Sat, 29 Jun 2013 04:17:54 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:17:54 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:17:54 UTC +00:00]] +  (2.8ms) RELEASE SAVEPOINT active_record_1 +  (2.2ms) 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", Sat, 29 Jun 2013 04:17:54 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:17:54 UTC +00:00], ["user_id", 1]] +  (2.8ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (6.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 +  (0.2ms) CREATE SCHEMA "test" +  (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)  +  (8.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") +  (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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (16.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.6ms) 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.6ms) 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') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8zqCBZE8Yj3cJqoNUyDA' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (2.0ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '8zqCBZE8Yj3cJqoNUyDA', "updated_at" = '2013-06-29 04:17:54.686172' WHERE "public"."cadenero_accounts"."id" = 1 +  (2.0ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 582ms (Views: 1.9ms | ActiveRecord: 103.7ms) + Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (8.0ms) ROLLBACK +  (9.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (51.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (9.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (15.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:17:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$YalWTtVOmAUa6zFFqKE1Pe5wDulqt9IBVt8VliNUfl2c.ENuznZY6"], ["updated_at", Sat, 29 Jun 2013 04:17:55 UTC +00:00]] + SQL (4.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", Sat, 29 Jun 2013 04:17:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:17:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:17:55 -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.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 192ms (Views: 0.3ms | ActiveRecord: 0.7ms) + Cadenero::V1::Account Load (20.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.3ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (50.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) 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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$bPl1oCoDhXGpx6LaF9BPWevRTB30LjXwKJ7LhgSZDIzOK7fhLUsJi"], ["updated_at", Sat, 29 Jun 2013 04:18:00 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" = '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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:18:00 UTC +00:00]] +  (0.1ms) 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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["user_id", 1]] +  (0.5ms) 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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$rVZyuyLNJmt7FMxed6jemOi0Avwkzm.XwaQZUiAwHBuJAqdukMgX."], ["updated_at", Sat, 29 Jun 2013 04:18:00 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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.4QzFxyKvN2Uc536Pd8GrOYuTJYbOZC/Ed5Z4eI3aL9mxQpKltSYu"], ["updated_at", Sat, 29 Jun 2013 04:18:00 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", Sat, 29 Jun 2013 04:18:00 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:18:00 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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.8ms) 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)  +  (5.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") +  (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.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.3ms) 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') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f3sRn5oVXGveBGMQEwkN' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'f3sRn5oVXGveBGMQEwkN', "updated_at" = '2013-06-29 04:18:00.517682' 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" +  (5.3ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", "subdomain"=>"first"}} +Completed 201 Created in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.9ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (69.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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) +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (92.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$bJK4cQ8HcUlDAeqKtAU2O.0MMjUxwGwdKO6B4ZuqY3tOkfaUBu8ce"], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (5.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + 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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) CREATE SCHEMA "test3" +  (9.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.5ms) 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") +  (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") +  (5.8ms) 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)  +  (1.3ms) 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.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-06-28 23:18: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-06-27 23:56:02 -0500 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON - Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} -params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} - Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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 14ms (Views: 0.4ms | ActiveRecord: 1.7ms) - Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 -  (6.4ms) 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 -  (21.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 + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (8.7ms) ROLLBACK +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.9ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (4.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$17lCqkDjwIhs/4iimqDJK.sClERdAW/bOk1aCwdz.T2zp09jp2sVq"], ["updated_at", Sat, 29 Jun 2013 04:18:01 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 (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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:18:01 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (10.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.4ms) 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.2ms) 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") +  (16.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) +  (1.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) 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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Gh/otVhQteaH3s0iyGlsB.XEZFCBD5F.uNNwnK7CAYBSc6PkqtNyC"], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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.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", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:18:01 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", 2], ["created_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:01 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18: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-06-28 23:18:01 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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" = 'user6@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 76ms (Views: 9.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (14.8ms) ROLLBACK +  (2.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (33.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (26.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (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", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$O7ELAVMRzVXURyesgbm7sOXKRUG8MDOYFgISVfRfiAzh979A7UDHm"], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00]] + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$dCF3rrwWY58riWavICPHKehoypfXtgQewcM.CCpb4sjPURz4x96Ra"], ["updated_at", Sat, 29 Jun 2013 04:18:02 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 (3.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", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00]] -  (0.7ms) RELEASE SAVEPOINT active_record_1 -  (1.6ms) 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", 1], ["created_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:02 UTC +00:00], ["user_id", 1]] -  (3.9ms) RELEASE SAVEPOINT active_record_1 -  (0.6ms) CREATE SCHEMA "test3" -  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") -  (2.2ms) 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.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") -  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) -  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (3.7ms) SELECT version FROM "schema_migrations" + Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00]] +  (0.6ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) CREATE SCHEMA "test6" +  (10.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") +  (11.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.3ms) 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") +  (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)  +  (8.9ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) 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-06-27 23:56:02 -0500 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18: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 3ms (Views: 0.3ms | ActiveRecord: 0.0ms) -Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:02 -0500 +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | 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' LIMIT 1 +  (5.0ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.3ms) 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", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$fPVFgAoL1SQwDlRsDPE5tuLSSgrKn5bQQ.ts5aGh7AqsQnkJVllzi"], ["updated_at", Sat, 29 Jun 2013 04:18:02 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 (1.8ms) 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", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (9.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", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:02 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (17.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)  +  (11.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (9.9ms) 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) +  (2.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") +  (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.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" +  (2.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-06-28 23:18:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user8@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (4.7ms) 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" = 'user8@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.4ms) 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 243ms (Views: 9.7ms | ActiveRecord: 7.5ms) + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:18:02Z","email":"user8@example.com","id":1,"password_digest":"$2a$10$fPVFgAoL1SQwDlRsDPE5tuLSSgrKn5bQQ.ts5aGh7AqsQnkJVllzi","updated_at":"2013-06-29T04:18:02Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007fce6ba6f888> +user_signed_in?: true +Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.0ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:03 -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) +  (12.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) 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", Sat, 29 Jun 2013 04:18:03 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Gx.FlOSgXcVg9wSJqitFueisz03BYiVqNgoGyM8/do5JCKWwzZpUi"], ["updated_at", Sat, 29 Jun 2013 04:18:03 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (2.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 29 Jun 2013 04:18:03 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:18:03 UTC +00:00]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (8.8ms) 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", Sat, 29 Jun 2013 04:18:03 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:03 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (11.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) +  (16.9ms) 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.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.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") +  (9.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) +  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.7ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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-06-28 23:18:03 -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-06-28 23:18:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user9@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (1.3ms) 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" = 'user9@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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (12.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 +Completed 201 Created in 256ms (Views: 7.8ms | ActiveRecord: 15.1ms) + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (4.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.6ms) +  (9.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (4.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (40.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$vJSTXXpcXcIMdNzNUfqjW.FqyHf4hSFrJm33hApBcohtUnNLTUq1e"], ["updated_at", Sat, 29 Jun 2013 04:18:32 UTC +00:00]] +  (0.1ms) 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" = 'test1' LIMIT 1 + SQL (1.8ms) 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", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (6.4ms) 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", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (4.6ms) CREATE SCHEMA "test1" +  (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)  +  (2.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") +  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (8.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (15.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (1.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-06-28 23:18:33 -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 27ms (Views: 4.7ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:33 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 + Cadenero::User Load (4.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 +Completed 422 Unprocessable Entity in 28ms (Views: 0.4ms | ActiveRecord: 8.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 +  (15.1ms) ROLLBACK +  (5.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (46.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (6.6ms) 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", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$AB3.XZSr0WP2MzfYhzj03.M3.BAs0iUFzycqWR9d1ccN1Mdkip.mi"], ["updated_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00]] +  (0.1ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:33 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (14.1ms) CREATE SCHEMA "test2" +  (33.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)  +  (16.4ms) 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") +  (29.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) +  (10.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") +  (13.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) +  (10.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.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-06-28 23:18:34 -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-06-28 23:18:34 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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 (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" = 'user2@example.com' LIMIT 1 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (6.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 373ms (Views: 179.5ms | ActiveRecord: 15.4ms) + Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:34 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (8.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 8.8ms) +  (20.1ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (62.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.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", Sat, 29 Jun 2013 04:18:34 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$2YhlE7kzg/7cZzIxjbAzM.FHrsFG8iy06MIZmat4jg1YkZC9SUZlG"], ["updated_at", Sat, 29 Jun 2013 04:18:34 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 (3.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", Sat, 29 Jun 2013 04:18:34 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:18:34 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", Sat, 29 Jun 2013 04:18:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:34 UTC +00:00], ["user_id", 1]] +  (2.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (10.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)  +  (3.8ms) 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") +  (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) +  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (5.5ms) 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)  +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (20.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (6.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (9.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:34 -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-06-28 23:18:34 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} 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.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.1ms) + 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) 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.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 -  (31.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 +  (3.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (70.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (7.5ms) 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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$w3SHa7d6fM3hI0hmK0VSXODEzcGIPdp4NRdCi8NEtxd6WE/0hN6eK"], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00]] +  (3.2ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$8V2GlmIbsS1HobR0bpuy2uwrbLqvQbOx/YsRqWUYl1lAc0NxYXPfK"], ["updated_at", Sat, 29 Jun 2013 04:18:35 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 (1.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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00]] -  (0.2ms) RELEASE SAVEPOINT active_record_1 -  (1.8ms) SAVEPOINT active_record_1 - SQL (6.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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["user_id", 1]] -  (5.0ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:18:35 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4" -  (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.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") -  (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.0ms) 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") -  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) -  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (4.2ms) SELECT version FROM "schema_migrations" -  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (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)  +  (3.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") +  (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.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") +  (6.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)  +  (15.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (11.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (4.0ms) SELECT version FROM "schema_migrations" +  (0.9ms) 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-06-27 23:56:03 -0500 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} - Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 'user4@example.com' LIMIT 1 - Cadenero::User Load (23.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 - Cadenero::Member Load (10.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 - Cadenero::V1::Account Load (5.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 -Completed 201 Created in 200ms (Views: 5.4ms | ActiveRecord: 42.6ms) - Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 -Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:03 -0500 + 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.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 + 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 211ms (Views: 4.9ms | ActiveRecord: 3.0ms) + Cadenero::V1::Account Load (9.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:35 -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 id: 1 -user: {"user":{"created_at":"2013-06-28T04:56:03Z","email":"user4@example.com","id":1,"password_digest":"$2a$10$w3SHa7d6fM3hI0hmK0VSXODEzcGIPdp4NRdCi8NEtxd6WE/0hN6eK","updated_at":"2013-06-28T04:56:03Z"}} +user: {"user":{"created_at":"2013-06-29T04:18:35Z","email":"user4@example.com","id":1,"password_digest":"$2a$10$8V2GlmIbsS1HobR0bpuy2uwrbLqvQbOx/YsRqWUYl1lAc0NxYXPfK","updated_at":"2013-06-29T04:18:35Z"}} CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 -current_user.id: #<Cadenero::User:0x007ff7117ad860> +current_user.id: #<Cadenero::User:0x007fd2e0e3a4a8> user_signed_in?: true -Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.3ms) -Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:03 -0500 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:35 -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) -  (5.7ms) 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 -  (20.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.7ms) BEGIN -  (1.9ms) SAVEPOINT active_record_1 - SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Z/IxHSi9wE6FO5q9ftdJ/OouU7dJPM9YBWIdRsnejPtcRaqDr8bzy"], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00]] -  (1.1ms) RELEASE SAVEPOINT active_record_1 -  (3.5ms) 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 (1.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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (8.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (15.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$qPr4Lv2VHziZ6lAPy3nD0OhmPbsAwXxb.RBogDHtGrs6yyaIRu5BG"], ["updated_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00]] +  (4.5ms) 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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["user_id", 1]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.4ms) CREATE SCHEMA "test5" -  (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.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.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.3ms) 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) -  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  -  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.6ms) SELECT version FROM "schema_migrations" -  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') -  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') -  (3.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", Fri, 28 Jun 2013 04:56:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$g.29w9ycDObj14EviUHbk.Qih8kIiYS7lIByFdKwzJVlFb7rvz5SC"], ["updated_at", Fri, 28 Jun 2013 04:56:03 UTC +00:00]] + Cadenero::V1::Account Exists (2.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00]] +  (3.9ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:35 UTC +00:00], ["user_id", 1]] +  (2.0ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) CREATE SCHEMA "test5" +  (17.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") +  (14.8ms) 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.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") +  (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)  +  (3.5ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) 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", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$fbKXdNKxVUbVd/.wtSyKTOs6lvGqF30CYogqLoaStZ9CckcNZiLPu"], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 - Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 28 Jun 2013 04:56:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 04:56:04 UTC +00:00]] -  (2.5ms) 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", Fri, 28 Jun 2013 04:56:04 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:04 UTC +00:00], ["user_id", 2]] -  (0.1ms) RELEASE SAVEPOINT active_record_1 -Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:04 -0500 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00]] +  (20.5ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) 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", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["user_id", 2]] +  (2.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:18:36 -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-06-27 23:56:04 -0500 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:18:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} - 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 (2.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 -Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.3ms) + 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 (7.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 +Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 7.4ms) + Cadenero::V1::Account Load (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (10.8ms) ROLLBACK +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (50.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (12.8ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) +  (1.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (50.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.0ms) 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) +  (6.9ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (43.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.2ms) BEGIN +  (3.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", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$8YHw7goXJMINElmgXwlOHuDyneEuZUS.NZyu4WJHm4Z211LfXIdxi"], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (8.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00]] +  (1.4ms) 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", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:36 UTC +00:00], ["user_id", 1]] +  (8.2ms) 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) +  (5.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.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)  +  (1.3ms) 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") +  (10.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)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (4.4ms) SELECT version FROM "schema_migrations" +  (7.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-06-28 23:18:36 -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 (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (35.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$kvqsNfiB/5J1oiP55HhaIeFqGiud/ek56SWd3Dbnhr1WFQTXTELxC"], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00]] + SQL (11.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", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["user_id", 2]] +  (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" = 2 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + 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" = 2 +Completed 201 Created in 260ms (Views: 5.5ms | ActiveRecord: 49.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 -  (4.7ms) ROLLBACK -  (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 -  (28.0ms) 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 -  (2.3ms) BEGIN -  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (8.8ms) ROLLBACK +  (7.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:18:37 -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} +  (6.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (10.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$14F3whs6yBR6JOv4.kzAa.ff56NiMHqAZiDUreHHEcxqLFIyaqs7."], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00]] +  (1.2ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 +  (2.1ms) CREATE SCHEMA "test" +  (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)  +  (0.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") +  (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.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") +  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (7.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') + Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x2x9ZyyUTFSibDwgDJJu' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'x2x9ZyyUTFSibDwgDJJu', "updated_at" = '2013-06-29 04:18:37.542549' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 305ms (Views: 1.8ms | ActiveRecord: 91.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (5.0ms) ROLLBACK +  (8.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (19.9ms) BEGIN +  (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" = 'test' LIMIT 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", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$GCBJ4fev1tQl6suE8iTYjOWUtvnFasyaaJBkvZrV.dsqm24NnvvdK"], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00]] + SQL (1.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", Sat, 29 Jun 2013 04:18:37 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:18:37 UTC +00:00]] +  (1.8ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:18:37 -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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (8.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 224ms (Views: 0.3ms | ActiveRecord: 8.9ms) + Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (44.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (10.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (16.2ms) BEGIN +  (8.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.4ms) 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bjNIxgPA8/rJVgGEEaa...NUSP/RPOuzsueLEQlVN54Skv2LeFdja"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$6X93vFdQOzZmza90GUDGweH7jUt0NdONQaXaOEUpoP5x7KCcP562."], ["updated_at", Sat, 29 Jun 2013 04:18:43 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" = 'test7' 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00]]  (0.1ms) 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["user_id", 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", 1], ["created_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:43 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$txkkBkWIrVqQAwGS9dG0xeb0ieHXFDTGxnCCBckpmTbVBe1lvINGi"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$FGBhJxk3QtJuM1IU/rjiXepXX.N.UV/0yMVxCYEQP.Gf6YAY/kTcy"], ["updated_at", Sat, 29 Jun 2013 04:18:43 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qseWpf6W4nKlA8B9sPRHPuY38s52lmqPEyrxBFEYu8p.kVLtT2ZdS"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$dl/Ph4Ej6NoWwQuSkk6g9uXUMziRxQU2tV7EZYaDzwib6G7kcl2aC"], ["updated_at", Sat, 29 Jun 2013 04:18:43 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.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", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.2ms) CREATE SCHEMA "www" -  (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) +  (0.1ms) CREATE SCHEMA "www" +  (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.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)  -  (4.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") -  (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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  -  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.4ms) SELECT version FROM "schema_migrations" -  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') -  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') -  (0.7ms) 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" = 'GoVCDDMwXC8yJ8wZtW2x' LIMIT 1 -  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" -  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  -  (8.5ms) 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 -  (23.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.7ms) BEGIN -Processing by Cadenero::V1::AccountsController#create as HTML +  (1.7ms) 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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.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)  +  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.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') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sYshLPRGthY75yxwcLM9' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'sYshLPRGthY75yxwcLM9', "updated_at" = '2013-06-29 04:18:43.751658' 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" +  (6.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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 + SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wqh82jktCeBGV1WlwfUHf.YoAxVjHowjI4jlF2xpqtgpNIHFVGXKO"], ["updated_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00]] + 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", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:18:43 UTC +00:00], ["user_id", 1]] +  (2.4ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (18.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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"}} - Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mCNYE88uVjPDsn8pK74D' LIMIT 1 -Completed 201 Created in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms) - Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g3yRX43DkKFHbwCLiDCi' LIMIT 1 +Completed 201 Created in 35ms (Views: 23.2ms | ActiveRecord: 0.0ms) +  (8.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (27.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) 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.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 -  (23.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 +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (3.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (6.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:19:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5fAFHKqzqWaOE6X.8t5R4uvzcfJojoP71mdv4HI.wHOnGFnum6Jdu"], ["updated_at", Sat, 29 Jun 2013 04:19:59 UTC +00:00]] + SQL (6.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", Sat, 29 Jun 2013 04:19:59 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:19:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.5ms) 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", Sat, 29 Jun 2013 04:19:59 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:19:59 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (7.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 LIMIT 1 +  (5.4ms) ROLLBACK +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN +  (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" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (59.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (6.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (27.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XVV0tRG08lrKfxkX1mXy.u1VC5rHXCG8Gy267LmtxxewUtVprfaau"], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (4.6ms) 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.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", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00]] +  (6.9ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SAVEPOINT active_record_1 + SQL (10.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", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (4.4ms) CREATE SCHEMA "test1" +  (13.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (11.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (9.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") +  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.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)  +  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.8ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.4ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$UC5k0ha2EY4XBkXeTK9aP.MbB13mW7Z0aplUPeKOD.3vNR6LZqHzq"], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00]] +  (5.3ms) 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.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", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00]] +  (5.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$tJMEo9a7oiTVmZjG2EjgYO0bSzxvp8phRD23vK8yT3poiPh/9dJEG"], ["updated_at", Fri, 28 Jun 2013 04:56:08 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", 2], ["created_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:20: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 30ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:20:00 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (9.1ms) 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" = 'user2@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 119ms (Views: 3.6ms | ActiveRecord: 10.7ms) + Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.1ms) BEGIN  (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.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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] + SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$raO9PQZDUkbdTftpuGVLSOU/YneZNYEDyj.CRYGVbIBgiswH9xSxO"], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + 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", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00]] +  (0.3ms) 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", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (9.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.1ms) 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)  +  (1.2ms) 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") +  (8.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)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.7ms) SELECT version FROM "schema_migrations" +  (0.8ms) 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-06-28 23:20: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-06-28 23:20:01 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 8.2ms) + Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (15.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 +  (31.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN  (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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["user_id", 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", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$.33eOzAWFlRSiAdkAAckCOQCkFzIa6SXA98bY670MHKLx8HQ0i2Ne"], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00]] +  (0.6ms) 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.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", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 -  (0.3ms) CREATE SCHEMA "test8" -  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.1ms) SAVEPOINT active_record_1 + SQL (12.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", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:01 UTC +00:00], ["user_id", 1]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (14.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.6ms) 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)  +  (1.2ms) 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") +  (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) +  (3.3ms) 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" +  (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 GET "/v1" for 127.0.0.1 at 2013-06-28 23:20: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-06-28 23:20:01 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (8.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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 11.9ms) + Cadenero::V1::Account Load (14.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.4ms) 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", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$.tHsrzn0jHnQXVbZmpJNBeIgXi4u9tYsYqJxIESw7jMRnMvQ/BIWO"], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (11.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", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00]] +  (1.2ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test5" +  (24.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) +  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (20.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (14.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)  +  (9.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (15.5ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (6.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.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-06-28 23:20:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user5@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + 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.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" = 'user5@example.com' LIMIT 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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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 +Completed 201 Created in 324ms (Views: 63.3ms | ActiveRecord: 4.8ms) + Cadenero::V1::Account Load (0.4ms) 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-06-28 23:20:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +id: 1 +user: {"user":{"created_at":"2013-06-29T04:20:02Z","email":"user5@example.com","id":1,"password_digest":"$2a$10$.tHsrzn0jHnQXVbZmpJNBeIgXi4u9tYsYqJxIESw7jMRnMvQ/BIWO","updated_at":"2013-06-29T04:20:02Z"}} + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +current_user.id: #<Cadenero::User:0x007fccb27f0630> +user_signed_in?: true +Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 1.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:20: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) +  (4.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (3.8ms) SAVEPOINT active_record_1 + SQL (10.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$JOVK2WAx2qS7S/A4jsni1u5tYE7PKbs181WfStpuD8KrUQoDRRKEi"], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (7.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + 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", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00]] +  (4.6ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) 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", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:02 UTC +00:00], ["user_id", 1]] +  (2.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (10.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.4ms) 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") -  (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) +  (11.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.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)  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (19.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) +  (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.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-06-28 23:20: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.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:20:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} +params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"} + Cadenero::V1::Account Load (10.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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 + Cadenero::User Load (0.5ms) 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 (5.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 +Completed 201 Created in 213ms (Views: 4.8ms | ActiveRecord: 18.3ms) + Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:20:03 -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 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (12.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23: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} +  (7.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (23.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (20.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7pBicj35IFzz8ArT.oBPc.o2GYitz2I2jS/edPMCfxRdPH51GGVvK"], ["updated_at", Sat, 29 Jun 2013 04:20:03 UTC +00:00]] + SQL (8.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", Sat, 29 Jun 2013 04:20:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:20:03 UTC +00:00]] +  (27.4ms) RELEASE SAVEPOINT active_record_1 +  (10.8ms) SAVEPOINT active_record_1 + SQL (7.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", Sat, 29 Jun 2013 04:20:03 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:03 UTC +00:00], ["user_id", 1]] +  (6.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 +  (5.7ms) 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) +  (4.3ms) 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") +  (32.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (14.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) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.2ms) SELECT version FROM "schema_migrations" +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Y9uKiMwKSngsqSdqAzpd' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (1.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Y9uKiMwKSngsqSdqAzpd', "updated_at" = '2013-06-29 04:20:03.825578' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 538ms (Views: 2.0ms | ActiveRecord: 225.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.6ms) BEGIN +  (1.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (15.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tqfbwsprSGAOGDJwkx//IutEg..57TL8oo1I6Y7Lk1hhYZlqcPCvG"], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00]] + SQL (2.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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23: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} +  (10.5ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (19.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (1.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 235ms (Views: 0.3ms | ActiveRecord: 31.6ms) + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (6.6ms) 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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$3FYRXh3ositUUxOqaTe/tuqD2fPQXGnd38qYLOPeIiXo7r8riFewC"], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00]] +  (0.5ms) 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 (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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:20:04 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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["user_id", 1]] +  (3.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (12.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.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") +  (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) +  (1.3ms) 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") +  (15.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) -  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.5ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.7ms) 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-06-28 23:20:04 -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" = 'test7' 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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$6VoZZB/.8yojd8vikaS2POk59zUbkaq1WXR1j3/LwUvUdSpSRP5na"], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00]] + SQL (15.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", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:04 UTC +00:00], ["user_id", 2]] +  (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" = 2 LIMIT 1 + Cadenero::V1::Account Load (9.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + 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" = 2 +Completed 201 Created in 229ms (Views: 7.0ms | ActiveRecord: 28.0ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (8.2ms) ROLLBACK +  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.4ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (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", Sat, 29 Jun 2013 04:20:09 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$8YOtBBGL6MKkN79Zf1zGEeh5jr75knUuVWvuht4H8cDxOipsnBySS"], ["updated_at", Sat, 29 Jun 2013 04:20:09 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 (1.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", Sat, 29 Jun 2013 04:20:09 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:20:09 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", Sat, 29 Jun 2013 04:20:09 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:20:09 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) 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", Sat, 29 Jun 2013 04:20:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$JiMogWon28fEMYe/7idGweimYoHMkXwJyYoUEpHcKNp.ZAhyuju8W"], ["updated_at", Sat, 29 Jun 2013 04:20:10 UTC +00:00]] +  (5.1ms) RELEASE SAVEPOINT active_record_1 +  (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", Sat, 29 Jun 2013 04:20:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9OslM6frh0iuDrPVDk0J8eKMckQy198c/2OIzkW364qCNZPl82qGe"], ["updated_at", Sat, 29 Jun 2013 04:20:10 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", Sat, 29 Jun 2013 04:20:10 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:20:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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") +  (1.0ms) 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) +  (0.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") +  (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)  +  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '67SxiB5okkwE9hQXRxH2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '67SxiB5okkwE9hQXRxH2', "updated_at" = '2013-06-29 04:20:10.434383' 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"  +  (5.8ms) ROLLBACK +  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (25.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (13.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (2.7ms) 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 (5.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:35:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$EPQOXS0kylepVriKBIX7MeZx5/AH6OdBP3Eb7XJAhZNcw2AhuofxG"], ["updated_at", Sat, 29 Jun 2013 04:35:31 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", Sat, 29 Jun 2013 04:35:31 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:35:31 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:35:31 -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.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 189ms (Views: 0.4ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (14.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.8ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:35:31 -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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Y1iT.b.nOOOBbX7XGIcUgueCiXvXEQB1fbICGXRR.EcNXY7MyqoWO"], ["updated_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00]] + SQL (1.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", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +  (10.2ms) SAVEPOINT active_record_1 + SQL (7.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", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:32 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" +  (12.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (9.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (22.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.2ms) 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") +  (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)  +  (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" +  (14.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) 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" = '5dk529hBeC5Qns77H6R4' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '5dk529hBeC5Qns77H6R4', "updated_at" = '2013-06-29 04:35:32.548242' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 693ms (Views: 2.4ms | ActiveRecord: 189.7ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (11.6ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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 +  (9.2ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$dHpbNvMAW3wXyLk8WtKkL.thSJPrzaThGDvqTbOczJEIti1y.ATk2"], ["updated_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00]] +  (0.9ms) 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" = 'test1' 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", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.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", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:32 UTC +00:00], ["user_id", 1]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (11.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (10.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) +  (0.9ms) 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.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) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (16.8ms) SELECT version FROM "schema_migrations" +  (18.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (20.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-06-28 23:35: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-06-28 23:35:33 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user1@example.com' LIMIT 1 + Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 255ms (Views: 46.5ms | ActiveRecord: 11.9ms) + Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:35:33 -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 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (18.7ms) 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 +  (29.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (4.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:35:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$xLcvfBqs3IPV.5mnvP6Wn.54L60CpjwIEW6eedqp8JgS4mRtwN9vG"], ["updated_at", Sat, 29 Jun 2013 04:35:33 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" = 'test2' LIMIT 1 + SQL (3.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", Sat, 29 Jun 2013 04:35:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:35:33 UTC +00:00]] +  (1.5ms) 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", Sat, 29 Jun 2013 04:35:33 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:33 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (42.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.9ms) 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.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") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.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) +  (1.0ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.3ms) 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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$ALMfsgmkFGtK34ntC3NM9e4MteYKMRvBj2jTLDbmCxueMO6/avcx."], ["updated_at", Sat, 29 Jun 2013 04:35:34 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.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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00]] +  (10.5ms) 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", 2], ["created_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:35:34 -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-06-28 23:35:34 -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 (13.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 +Completed 422 Unprocessable Entity in 24ms (Views: 0.4ms | ActiveRecord: 14.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.0ms) ROLLBACK +  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (45.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.4ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (5.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$M8OSXnquT0.cmtU0u4BWOuqKbHqbWthKZud3L2R7bIWdTDa5kFQLS"], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00]] +  (5.4ms) RELEASE SAVEPOINT active_record_1 +  (2.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (7.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00]] +  (14.0ms) RELEASE SAVEPOINT active_record_1 +  (4.9ms) 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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.0ms) CREATE SCHEMA "test4" +  (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)  +  (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.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") +  (2.2ms) 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) +  (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.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-06-28 23:35:34 -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-06-28 23:35:34 -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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (6.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 +Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 9.9ms) + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (13.1ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (2.3ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BA7fNjIvNY/Ha66u12x19u9hc0ZSUsfN17bfgdLcL52LoJWGltM8K"], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00]] +  (0.1ms) 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" = 'test5' LIMIT 1 + SQL (17.8ms) 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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (9.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", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:34 UTC +00:00], ["user_id", 1]] +  (0.2ms) 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)  +  (8.7ms) 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") +  (12.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") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (17.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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (4.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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-06-28 23:35:35 -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-06-28 23:35:35 -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 (5.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 +Completed 422 Unprocessable Entity in 17ms (Views: 7.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' LIMIT 1 +  (13.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.7ms) BEGIN +  (0.9ms) 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", Sat, 29 Jun 2013 04:35:35 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$a2qqB4yrzrzbq8K613IsNuO9z4i7wwa5W0ivJOhmaenXc1qTAjTBq"], ["updated_at", Sat, 29 Jun 2013 04:35:35 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" = 'test6' 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", Sat, 29 Jun 2013 04:35:35 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:35:35 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:35:35 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:35 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (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)  +  (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") +  (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.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") +  (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)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.4ms) 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-06-28 23:35:35 -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 ('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" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (14.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (25.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (4.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 260ms (Views: 6.2ms | ActiveRecord: 44.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-28 23:35:35 -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-06-28 23:35:35 -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) +  (5.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (33.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (11.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (7.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.7ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (18.1ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (25.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.2ms) BEGIN +  (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" = '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", Sat, 29 Jun 2013 04:35:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Qtj8CT.3AMDfEX9l9Gga3.X9ow/liPYETtKPXj79dJlYXk/DgQXGK"], ["updated_at", Sat, 29 Jun 2013 04:35:36 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", Sat, 29 Jun 2013 04:35:36 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:35:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.4ms) SAVEPOINT active_record_1 + SQL (4.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", Sat, 29 Jun 2013 04:35:36 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:36 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 +  (0.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$QgVaCiy1/1aT7jz3hN1RiOsLKDWFJHkcVO0Dv/uxTW2FM4WZ.CMI6"], ["updated_at", Sat, 29 Jun 2013 04:35:41 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" = 'test7' LIMIT 1 + SQL (6.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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:35:41 UTC +00:00]] +  (0.2ms) 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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["user_id", 1]] +  (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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$0w1v9bGQc7YPoxmZ5kaMfOIf5qQxIvEGJd7904me.Q8PNJ8KEZKRG"], ["updated_at", Sat, 29 Jun 2013 04:35:41 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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$8jqiwNC7mf1anHIC5m7Lnewyl76bQhMQCQFosX/U/NROySFwSXLi6"], ["updated_at", Sat, 29 Jun 2013 04:35: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" = '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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:35:41 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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) +  (0.9ms) 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.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") +  (0.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.2ms) SELECT version FROM "schema_migrations" +  (0.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') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LLzyueH5NyFZpKQG5KCo' LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'LLzyueH5NyFZpKQG5KCo', "updated_at" = '2013-06-29 04:35:41.691401' WHERE "public"."cadenero_accounts"."id" = 2 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (2.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (12.0ms) ROLLBACK +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (2.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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$TH.8Lx7c3qUw106saLj87O6vq2zEriSzxQzkOQzf0Y3UYxwGVgTQ2"], ["updated_at", Sat, 29 Jun 2013 04:35: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" = 'test8' 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", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:35:41 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", 1], ["created_at", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:41 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (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.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") +  (12.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.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") +  (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)  +  (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.4ms) 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/users" for 127.0.0.1 at 2013-06-28 23:35:41 -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 (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:35:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Q57oku3Xa/m1VLDFHSCN7ewRjzhKgPgI08L1GbIgF.LJmoi6B4TJi"], ["updated_at", Sat, 29 Jun 2013 04:35:42 UTC +00:00]] + 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", 1], ["created_at", Sat, 29 Jun 2013 04:35:42 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:35:42 UTC +00:00], ["user_id", 2]] +  (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::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + 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" = 2 +Completed 201 Created in 154ms (Views: 6.4ms | ActiveRecord: 12.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (15.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (3.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (48.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.9ms) 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) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (30.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.6ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 25ms (Views: 12.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (71.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.9ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) SAVEPOINT active_record_1 + SQL (12.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$8dxM05B8oQxpbzh7fzqEteET5PEhEumzgQWvaAv3uZV1aChF7Usym"], ["updated_at", Sat, 29 Jun 2013 04:42:04 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" = 'test1' LIMIT 1 + 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$XoVV8EnLoeio7L5DYKmWneeE1hceP7yrnIvwVsBqN5IT5HgFE9DGC"], ["updated_at", Sat, 29 Jun 2013 04:42:04 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$BNT7GT73Dpz.oSO8ukAfwuopMMaZf9gmQzp4lhcwrIvpP9SpBwz7S"], ["updated_at", Sat, 29 Jun 2013 04:42:04 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "www" +  (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.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") +  (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.5ms) 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.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') -Started POST "//v1/users" for 127.0.0.1 at 2013-06-27 23:56:08 -0500 -Processing by Cadenero::V1::Account::UsersController#create as HTML + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E7xJqW2H9puR8PAyxyHD' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'E7xJqW2H9puR8PAyxyHD', "updated_at" = '2013-06-29 04:42:04.522201' 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"  +  (13.5ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$BzkxPp6cRD2/ZiKTZ0c.MOs5voyjVFxm7H7Qmbkv4yN09yE.3Z9oy"], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00]] +  (0.1ms) 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" = 'test2' 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:42:04 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["user_id", 1]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.6ms) 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.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") +  (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)  +  (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') +  (0.1ms) 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-06-28 23:42:04 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$lwMB73b/KwV2M966ekkJle1fDgQouYqaIdXZ5Tjr2INLnWmUF9D4."], ["updated_at", Sat, 29 Jun 2013 04:42:04 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", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:04 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (3.5ms) 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 (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" = 2 +Completed 201 Created in 155ms (Views: 36.2ms | ActiveRecord: 7.1ms) + 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.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2CKRc9anJoFTR1m93e8x7Od2dRZWe/wGvCTjZsH.YJmOL5tdm0uCq"], ["updated_at", Fri, 28 Jun 2013 04:56:08 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["user_id", 2]] -  (0.3ms) RELEASE SAVEPOINT active_record_1 - Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 - Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 - 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" = 2 -Completed 201 Created in 114ms (Views: 5.5ms | ActiveRecord: 3.7ms) - 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.3ms) 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 -  (18.6ms) 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 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Fl6ciE29M9tUWWPcyk8eKuy9SHzysCyvemtc04600jB3gIoQCvtRG"], ["updated_at", Sat, 29 Jun 2013 04:42:05 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 (5.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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.2ms) 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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) +  (0.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)  +  (1.3ms) 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.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)  +  (5.8ms) 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.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-06-28 23:42: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) +  (2.6ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$/3gmlf46BsS/sXX/XRGgj.Y89FHxyg//3pBiej6jNeb3fzwbOXRy6"], ["updated_at", Sat, 29 Jun 2013 04:42:05 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.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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:42:05 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (8.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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (12.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.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") +  (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)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.6ms) 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-06-28 23:42: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) +  (7.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.6ms) BEGIN +  (0.3ms) 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$jtIOglk61g/9mIVOG74eBu.c/wtcToc78rR21dVf7pCauYlgOn72S"], ["updated_at", Sat, 29 Jun 2013 04:42:05 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" = 'test' LIMIT 1 - 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", Fri, 28 Jun 2013 04:56:08 UTC +00:00], ["name", "Testy"], ["owner_id", nil], ["subdomain", "test"], ["updated_at", Fri, 28 Jun 2013 04:56:08 UTC +00:00]] -  (0.4ms) RELEASE SAVEPOINT active_record_1 -Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-27 23:56:08 -0500 -Processing by Cadenero::V1::AccountsController#create as HTML + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:05 UTC +00:00], ["user_id", 1]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test5" +  (12.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.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") +  (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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (14.2ms) 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) +  (11.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (32.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.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-06-28 23:42: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) +  (5.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (6.2ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$sbqphInmv3Xcyx/XakrfUe6q841W2OK2icdXhPqGV2jsTuzAxWzyG"], ["updated_at", Sat, 29 Jun 2013 04:42:06 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 (2.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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:42:06 UTC +00:00]] +  (0.8ms) 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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) CREATE SCHEMA "test6" +  (21.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)  +  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.2ms) 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.6ms) 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") +  (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)  +  (1.5ms) 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.1ms) 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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$3hn3y62keY0gYmQE.wnGGu93NA3LREZLjKYMEdFEZq9OFyqx0jLiW"], ["updated_at", Sat, 29 Jun 2013 04:42:06 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 (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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:42:06 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.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", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:06 UTC +00:00], ["user_id", 2]] +  (6.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:42: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) +  (11.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$j4xItDRS0W77chXixg05dutv6nnp.9avZte8NMFNASwnATBGke0HW"], ["updated_at", Sat, 29 Jun 2013 04:42:07 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" = 'test8' 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", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:42:07 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", 1], ["created_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (35.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (14.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)  +  (5.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") +  (6.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.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" +  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (6.0ms) ROLLBACK +  (5.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$oMlDZeozNvQqaWZVzZkvr.DwMeJxWgXDDPS8euEaO35RrGv8eTV76"], ["updated_at", Sat, 29 Jun 2013 04:42:07 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" = 'test9' 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", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.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", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["user_id", 1]] +  (3.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (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)  +  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (7.2ms) 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) +  (2.2ms) 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") +  (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)  +  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (5.6ms) 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-06-28 23:42:07 -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) +  (8.8ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (28.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.9ms) BEGIN +  (2.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hGoJRj4sf893ebnA4KpWMuK0CMdMXXtHwm0ozfsC86IwCoF4myKda"], ["updated_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00]] + SQL (2.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", Sat, 29 Jun 2013 04:42:07 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:42:07 UTC +00:00]] +  (1.9ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:42:08 -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 +  (9.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 189ms (Views: 0.3ms | ActiveRecord: 0.9ms) - Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 -  (0.3ms) 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 -  (13.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-06-27 23:56:09 -0500 -Processing by Cadenero::V1::AccountsController#create as HTML +Completed 422 Unprocessable Entity in 248ms (Views: 0.3ms | ActiveRecord: 10.5ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (1.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (41.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (24.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (13.6ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:42:08 -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 +  (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 - SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$R8z.2g1PJZh/JYb.v/ga5Opv9FVFWiOC/JBe0zGQZnT0bGGjvQEby"], ["updated_at", Fri, 28 Jun 2013 04:56:09 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", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00]] + SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$e78wP96Y9x4WIIPesGCmJO2zqw61XeOAGIs9.8boKpa7ypHqkqmqi"], ["updated_at", Sat, 29 Jun 2013 04:42:08 UTC +00:00]] + SQL (14.8ms) 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", Sat, 29 Jun 2013 04:42:08 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:42:08 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", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["user_id", 1]] +  (8.8ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:42:08 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:08 UTC +00:00], ["user_id", 1]]  (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" != 1) LIMIT 1 -  (0.2ms) CREATE SCHEMA "test" -  (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") -  (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.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") -  (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)  -  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (1.4ms) SELECT version FROM "schema_migrations" -  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) 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.6ms) 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") +  (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)  +  (8.6ms) 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.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.6ms) 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.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') - Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XwQrcnCmXUAy4NL34qjw' LIMIT 1 - Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PUysNsRfpXAgRT5r1SCF' LIMIT 1 -Completed 201 Created in 168ms (Views: 0.3ms | ActiveRecord: 38.9ms) - Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 -  (3.1ms) ROLLBACK -  (2.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.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 -  (0.2ms) BEGIN + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gk5xNonfwn8pKuqNTNnb' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Gk5xNonfwn8pKuqNTNnb', "updated_at" = '2013-06-29 04:42:08.814363' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 319ms (Views: 1.7ms | ActiveRecord: 88.2ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (9.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (29.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) 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" IS NULL LIMIT 1 -  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 - Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL 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 -  (11.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 + Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL  (0.1ms) BEGIN -  (30.5ms) SAVEPOINT active_record_1 +  (2.7ms) 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 (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:42:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$lb72Yr/tsUbYpv.fMVU1s.Af.4jyuUZSdSLL9hHXEcUwtjHI6h5va"], ["updated_at", Sat, 29 Jun 2013 04:42:09 UTC +00:00]] + SQL (0.8ms) 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", Sat, 29 Jun 2013 04:42:09 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:42:09 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", 1], ["created_at", Sat, 29 Jun 2013 04:42:09 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:42:09 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 LIMIT 1 +  (0.2ms) ROLLBACK +  (7.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (14.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (23.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (41.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$bq9Ky3tuZQJqinTkIKhCjuZ5.pIjpksxW088ba8UvFHXTFgbPsy0i"], ["updated_at", Sat, 29 Jun 2013 04:44:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (11.5ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (8.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", Sat, 29 Jun 2013 04:44:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 04:44:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:44:04 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:04 UTC +00:00], ["user_id", 1]] +  (2.9ms) RELEASE SAVEPOINT active_record_1 +  (9.7ms) CREATE SCHEMA "test1" +  (14.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.3ms) 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") +  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.9ms) 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)  +  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.6ms) 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/users" for 127.0.0.1 at 2013-06-28 23:44: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 (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Y3yTYGTL2m4S.gB1V/CZ3.R9qh2qJYTeXhLB6.N5R2f7Ygv8cC4gq"], ["updated_at", Sat, 29 Jun 2013 04:44:05 UTC +00:00]] + 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", 1], ["created_at", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (12.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (4.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" = 2 +Completed 201 Created in 277ms (Views: 61.4ms | ActiveRecord: 25.7ms) + Cadenero::V1::Account Load (7.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.7ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8r/q76hCt/PNM1kpfncSm.Fs5PSaaJ7qnimIn5bu5P2w/KvRNCpgK"], ["updated_at", Sat, 29 Jun 2013 04:44:05 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 (2.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", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 04:44:05 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", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:05 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (28.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.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") +  (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) +  (2.3ms) 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.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.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') +  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:44: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) +  (9.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (3.7ms) 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", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$cUJblZYjLwbpC8S.PNx.UulTFZu/LtmdG3jdDbsokIGzpnEYrV/Mu"], ["updated_at", Sat, 29 Jun 2013 04:44:06 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" = 'test3' LIMIT 1 + SQL (5.8ms) 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", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00]] +  (0.1ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.3ms) CREATE SCHEMA "test3" +  (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) +  (2.1ms) 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") +  (23.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)  +  (2.3ms) 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") +  (8.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.2ms) 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.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-06-28 23:44: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) +  (5.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (12.5ms) SAVEPOINT active_record_1 + SQL (28.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$xvW/H5RlJdeC.jJwDSw22OgkAyom5V87oxS0NUOdG3UfY.O4mBQ2u"], ["updated_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00]] +  (10.7ms) RELEASE SAVEPOINT active_record_1 +  (18.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (10.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00]] +  (0.3ms) 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", 1], ["created_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:06 UTC +00:00], ["user_id", 1]] +  (3.2ms) RELEASE SAVEPOINT active_record_1 +  (4.7ms) CREATE SCHEMA "test4" +  (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)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (10.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.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.3ms) 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)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.3ms) SELECT version FROM "schema_migrations" +  (1.0ms) 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-06-28 23:44: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) +  (9.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (28.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (20.5ms) SAVEPOINT active_record_1 + SQL (9.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yWFkHrAK.vd4YVAf1PRhm..oBnw8Mp.UPOofyVgqZJWval3EVSAyC"], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (1.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 (1.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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 04:44:07 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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.6ms) CREATE SCHEMA "test5" +  (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.6ms) 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.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") +  (1.0ms) 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) +  (7.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.7ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.6ms) 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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Kcr31JMCL98VZdMCJTfJz.Bf9c9oYJpax3pPbxLCkcxhHV7UVKTPO"], ["updated_at", Sat, 29 Jun 2013 04:44:07 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 (0.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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-28 23:44:07 -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) +  (12.6ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (32.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (1.5ms) SAVEPOINT active_record_1 + SQL (14.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$ZFzo9lKN3vrYlpdvEhtgrOLiBOJFtG69WHgHaJVbUaaTDCcmv06NG"], ["updated_at", Sat, 29 Jun 2013 04:44:07 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" = 'test7' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00]] +  (5.5ms) 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", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:07 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test7" +  (16.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.5ms) 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.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") +  (1.0ms) 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)  +  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (8.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (12.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (7.7ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.9ms) BEGIN +  (0.6ms) 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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$/M.Q0v2OmlgZ6pKC0OYUoO8RODzNDO36IXLfOlELKXcG61GqadPgK"], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (3.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (17.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (23.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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00]] +  (13.4ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) 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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["user_id", 1]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +  (9.9ms) CREATE SCHEMA "test8" +  (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) +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (7.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (39.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.3ms) 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") +  (29.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.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.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 GET "/v1" for 127.0.0.1 at 2013-06-28 23:44:08 -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) +  (31.3ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:44:08 -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 (3.8ms) 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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Xb.3J86Gl8LQw18S2Spg4u7lI3j8XKVlSEmKZCSmgmi9ze4F/4CzS"], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00]] + SQL (11.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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.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", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:08 UTC +00:00], ["user_id", 1]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 +  (2.3ms) CREATE SCHEMA "test" +  (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) +  (11.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") +  (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.7ms) 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") +  (17.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) +  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (8.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (2.8ms) 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" = 'a8DW4yyEVdFYfnz2YDMM' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'a8DW4yyEVdFYfnz2YDMM', "updated_at" = '2013-06-29 04:44:08.847451' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 331ms (Views: 4.4ms | ActiveRecord: 130.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (4.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (13.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (14.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qMSqk6jTDzxYno4yfK/jq./RnFIfjmOGAAaVCcp2fr3T8BKb.nldm"], ["updated_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00]] + SQL (1.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", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-28 23:44:09 -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} +  (3.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (6.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (24.4ms) 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 235ms (Views: 0.3ms | ActiveRecord: 34.4ms) + Cadenero::V1::Account Load (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.5ms) ROLLBACK +  (6.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.3ms) BEGIN +  (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 - SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$gPe3CUh16ZQIdqYNTc3yC.1ohps4JvtXjyrUl/HKiBGLA2/gpnDDi"], ["updated_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00]] - SQL (11.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", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00]] + SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$gt6XsIDTQwA3x32FkpHu3.mvR04IZnh70ZC/0ehjSXH78mHGRHaLG"], ["updated_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00]] + SQL (1.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", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 - SQL (12.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", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 04:56:09 UTC +00:00], ["user_id", 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", 1], ["created_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:09 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 -  (10.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 -  (54.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; -  (6.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 + 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 LIMIT 1 +  (0.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (6.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) 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", Sat, 29 Jun 2013 04:44:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$d/mlVD0zka2B0ArEXOWhO.cZ4UQBLTsIQv6aeiQc5JiZgNiF9x3xG"], ["updated_at", Sat, 29 Jun 2013 04:44:14 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" = 'test9' LIMIT 1 + SQL (3.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", Sat, 29 Jun 2013 04:44:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 29 Jun 2013 04:44:14 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", Sat, 29 Jun 2013 04:44:14 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 04:44:14 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.0ms) 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", Sat, 29 Jun 2013 04:44:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$sOsRMB.N1ukXVHLDz5avmec3xTv5e8sTKlc6JxeNMUqzRLQTUGOby"], ["updated_at", Sat, 29 Jun 2013 04:44:14 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", Sat, 29 Jun 2013 04:44:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$0yxr/xbPJ6lmNRY2LvZyZuzEtawxVC0Ot9ZaDGH8yid6t3bFTs/ra"], ["updated_at", Sat, 29 Jun 2013 04:44: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.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", Sat, 29 Jun 2013 04:44:15 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 04:44:15 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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) +  (10.0ms) 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") +  (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.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") +  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VWBgpAuBX7x97jZRyq2J' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (3.2ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'VWBgpAuBX7x97jZRyq2J', "updated_at" = '2013-06-29 04:44:15.097319' WHERE "public"."cadenero_accounts"."id" = 2 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (2.7ms) ROLLBACK +  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" 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", "subdomain"=>"first"}} +Completed 201 Created in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.8ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) 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.1ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (5.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (25.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (10.1ms) BEGIN +  (2.0ms) ROLLBACK +  (7.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (39.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) BEGIN +  (1.6ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (29.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.0ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (75.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (10.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (4.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (52.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (29.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (11.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (40.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (82.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (3.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (51.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (53.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (44.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (2.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (28.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (26.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (5.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (28.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.6ms) BEGIN +  (1.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (58.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.7ms) BEGIN +  (3.5ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.5ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (38.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (34.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.2ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (62.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (11.2ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (77.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (13.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (113.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (106.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (106.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (39.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.6ms) ROLLBACK +  (25.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (49.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (20.7ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (31.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (3.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (28.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (3.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (23.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (13.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:15:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ZLy52CQ8TgRAMqUDcLGvmusQmADOroqGerK2DKPPl6x9fp1y.8SsK"], ["updated_at", Sat, 29 Jun 2013 05:15:04 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (6.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 05:15:05 UTC +00:00]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.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", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (3.9ms) CREATE SCHEMA "test1" +  (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.2ms) 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.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") +  (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.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" +  (2.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 GET "/v1" for 127.0.0.1 at 2013-06-29 00:15: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 9ms (Views: 0.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-29 00:15:05 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 39ms (Views: 0.4ms | ActiveRecord: 1.7ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.4ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (18.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (13.7ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (20.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qD4161utDO8IXPsIo4Y67eFs8OBZGAut6g12W3D68u2YFPB5SY682"], ["updated_at", Sat, 29 Jun 2013 05:15:05 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" = 'test2' LIMIT 1 + SQL (5.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", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 05:15:05 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) 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", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:05 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (39.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (16.6ms) 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) +  (10.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") +  (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.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 GET "/v1" for 127.0.0.1 at 2013-06-29 00:15: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-06-29 00:15:06 -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 (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" = 'user2@example.com' LIMIT 1 + Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 266ms (Views: 61.8ms | ActiveRecord: 10.1ms) + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:15:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (4.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.4ms) +  (4.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.9ms) 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", Sat, 29 Jun 2013 05:15:06 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$ePqwB.71DAz5/HtUPKCz9.tw1oQ05sqeiKHk3NhXpstHP0jmFwsii"], ["updated_at", Sat, 29 Jun 2013 05:15:06 UTC +00:00]] +  (2.5ms) RELEASE SAVEPOINT active_record_1 +  (6.8ms) 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 (3.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", Sat, 29 Jun 2013 05:15:06 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 05:15:06 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (3.4ms) SAVEPOINT active_record_1 + SQL (7.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", Sat, 29 Jun 2013 05:15:06 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:06 UTC +00:00], ["user_id", 1]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (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)  +  (18.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") +  (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) +  (0.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") +  (25.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.0ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) 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-06-29 00:15:06 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@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 ('test3') LIMIT 1 + Cadenero::User Load (6.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 + Cadenero::User Load (5.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (3.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 +Completed 201 Created in 159ms (Views: 5.2ms | ActiveRecord: 20.7ms) + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-29 00:15:07 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 1.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:15:07 -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) +  (6.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (47.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (1.2ms) SAVEPOINT active_record_1 + SQL (6.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$7CTr8tB.E10fDd/kzMuuOerQHsBXAyA3YquOKXVsif7xt.XzpaJq2"], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00]] +  (0.1ms) 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" = 'test4' 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", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00]] +  (0.9ms) 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", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (7.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") +  (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") +  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (30.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.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.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-06-29 00:15:07 -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-06-29 00:15:07 -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 ('test4') 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.2ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (32.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (4.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$NzXBfUbjHrV4QEiP4UtG5OdH89rIq3CCBuYtCN8vHnl53MMvgD1Z2"], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (3.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", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00]] +  (4.3ms) RELEASE SAVEPOINT active_record_1 +  (3.0ms) 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", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:07 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (6.0ms) CREATE SCHEMA "test5" +  (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)  +  (11.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") +  (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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (10.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (9.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) +  (15.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (6.2ms) SAVEPOINT active_record_1 + SQL (29.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Qvht8bPnHUmy3hjS7su1gu8EKj9e7nLgnsn/ecjzzngsyL.1U.4am"], ["updated_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00]] +  (10.6ms) RELEASE SAVEPOINT active_record_1 +  (1.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00]] +  (2.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", 2], ["created_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:15:08 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:15:08 -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-06-29 00:15:08 -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.5ms) 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 +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 +  (15.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (3.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (5.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (27.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.5ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (19.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:35 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$RqmUBale3I56rJhxUGlOoOaQR8e9l1puuwvjd.tM3/uPIDZVvkDra"], ["updated_at", Sat, 29 Jun 2013 05:18:35 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (22.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (14.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", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 29 Jun 2013 05:18:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.2ms) SAVEPOINT active_record_1 + 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", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["user_id", 1]] +  (2.3ms) RELEASE SAVEPOINT active_record_1 +  (2.6ms) CREATE SCHEMA "test1" +  (20.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)  +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (12.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (8.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) +  (23.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") +  (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)  +  (11.3ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) SAVEPOINT active_record_1 + SQL (16.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mK.hSC5mVyeDMoDSA0t/Y.TYjHsKa2h6qU1PvHCSLI79By.vSEA/G"], ["updated_at", Sat, 29 Jun 2013 05:18:36 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (3.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (5.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 29 Jun 2013 05:18:36 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", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:36 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:18:36 -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 8ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-29 00:18:36 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user2@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 3.8ms) + 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.1ms) ROLLBACK +  (1.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (13.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +  (7.7ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$qil/3.DXNz1E/ZJfVv0mjeGR5ewV5Z38c3iYo/vIC0M3kFd3DCeai"], ["updated_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00]] +  (4.0ms) RELEASE SAVEPOINT active_record_1 +  (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" = 'test3' 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", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 29 Jun 2013 05:18:37 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", 1], ["created_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["user_id", 1]] +  (2.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (28.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)  +  (8.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (20.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.4ms) 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") +  (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.0ms) 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" +  (3.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 GET "/v1" for 127.0.0.1 at 2013-06-29 00:18: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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-29 00:18:37 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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 7ms (Views: 0.4ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.4ms) ROLLBACK +  (4.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (4.7ms) SAVEPOINT active_record_1 + SQL (4.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$AoU1JsE8Ub58t9fScrzKRuJv.rFbs.tHa8Hj7LxkYkYWfibQtIkRK"], ["updated_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00]] +  (4.7ms) RELEASE SAVEPOINT active_record_1 +  (14.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (1.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", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00]] +  (9.6ms) RELEASE SAVEPOINT active_record_1 +  (11.4ms) SAVEPOINT active_record_1 + SQL (13.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", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:37 UTC +00:00], ["user_id", 1]] +  (24.2ms) RELEASE SAVEPOINT active_record_1 +  (15.5ms) CREATE SCHEMA "test4" +  (14.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)  +  (6.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (13.8ms) 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) +  (6.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (7.8ms) 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)  +  (14.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.7ms) 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-06-29 00:18:37 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 'user4@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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (2.3ms) 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 217ms (Views: 62.0ms | ActiveRecord: 8.6ms) + Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-29 00:18:38 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.6ms) +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:18: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) +  (6.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (56.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (16.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.4ms) BEGIN +  (0.1ms) 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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$1NBW15qiEqhvv9p0b5hYo.6qFev4zmLznZCumNkvUA.ph6I4kqr4K"], ["updated_at", Sat, 29 Jun 2013 05:18:38 UTC +00:00]] +  (0.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" = 'test5' LIMIT 1 + SQL (2.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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 29 Jun 2013 05:18:38 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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (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)  +  (5.9ms) 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) +  (2.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)  +  (10.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (17.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (5.6ms) 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-06-29 00:18: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-06-29 00:18:38 -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 (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (8.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 +Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 10.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (8.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (36.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (7.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.5ms) BEGIN +  (0.3ms) 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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$d3gDPpYsb53WZsLxGF4NXuwdxuyWZuuSCxrH9sF5UCLSwRplgUY5m"], ["updated_at", Sat, 29 Jun 2013 05:18:38 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 (9.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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 29 Jun 2013 05:18:38 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (17.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", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:38 UTC +00:00], ["user_id", 1]] +  (3.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (8.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") +  (15.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) +  (7.5ms) 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.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.6ms) SELECT version FROM "schema_migrations" +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:18:39 -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-06-29 00:18:39 -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 ('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" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + 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 +Completed 201 Created in 207ms (Views: 21.4ms | ActiveRecord: 3.1ms) + Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-06-29 00:18:39 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (6.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 6.7ms) +  (4.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (52.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) BEGIN +  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$dUkPQpyoYNXgCaLYV7i.c.g80qP.IQzY8koNWc9gVCmDPTMmytTb2"], ["updated_at", Sat, 29 Jun 2013 05:18:44 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" = 'test7' 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 29 Jun 2013 05:18:44 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["user_id", 1]] +  (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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DqjgIB1K5AYsS2268nufmeCDmzQn/FQ6fmNmog8A7FEfyHJzqNY7."], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$2SxkJCcI6RuIi4RpbQo.ruJSdSOswa2Q5F.fUi7y.eF5EoaQg4lnO"], ["updated_at", Sat, 29 Jun 2013 05:18:44 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" = 'www' 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (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") +  (0.9ms) 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.1ms) 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.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.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') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pnPDqworoeZdPrCxuBka' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'pnPDqworoeZdPrCxuBka', "updated_at" = '2013-06-29 05:18:44.377334' 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"  +  (10.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$SIwtO3xKebnLYvnRHd8pcOfM81mtAoqPLb3z9PzCcZp0PgHRji3n6"], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00]] + SQL (4.8ms) 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 05:18:44 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", 1], ["created_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_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 LIMIT 1 +  (0.2ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (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" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (34.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-29 00:18:44 -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.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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$rbUREufvwScdwYgQToI14OPiNA24CiurD/Q7LKD8HZmhJOGwVyrr."], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00]] + 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00]] +  (0.1ms) 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", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:44 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.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.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.4ms) 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)  +  (1.2ms) 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") +  (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.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.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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5RhPGbsqZhs8XNbHM3xL' LIMIT 1 +  (3.9ms) SAVEPOINT active_record_1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '5RhPGbsqZhs8XNbHM3xL', "updated_at" = '2013-06-29 05:18:44.989439' WHERE "public"."cadenero_accounts"."id" = 1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 287ms (Views: 2.1ms | ActiveRecord: 46.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (5.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (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 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$RivB5I4nQHfnVXYq5goswem7VcQfYCkkbZsrROh4QCmn9lTlD9xJm"], ["updated_at", Sat, 29 Jun 2013 05:18:45 UTC +00:00]] + SQL (0.8ms) 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", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 29 Jun 2013 05:18:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-06-29 00:18: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} +  (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.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 108ms (Views: 0.3ms | ActiveRecord: 0.7ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (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", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$7YBFHr6Ow91X6hKRFKscOO9CA6gzi4rpgNC26J/5cvWE/2mqmnbZm"], ["updated_at", Sat, 29 Jun 2013 05:18:45 UTC +00:00]] +  (3.7ms) RELEASE SAVEPOINT active_record_1 +  (4.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 (4.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", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 29 Jun 2013 05:18:45 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", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:45 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (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.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") +  (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) +  (7.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") +  (10.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) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (2.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-06-29 00:18:46 -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 (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (12.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 29 Jun 2013 05:18:46 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$eXcxo7drdV43bzwSgsrhN.W8A5mzqVUo.LDLxYBA9SvjTl0rTeGEu"], ["updated_at", Sat, 29 Jun 2013 05:18:46 UTC +00:00]] + SQL (13.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", Sat, 29 Jun 2013 05:18:46 UTC +00:00], ["updated_at", Sat, 29 Jun 2013 05:18:46 UTC +00:00], ["user_id", 2]] +  (4.6ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (7.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" = 2 +Completed 201 Created in 332ms (Views: 6.2ms | ActiveRecord: 51.7ms) + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (17.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL