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
- [1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (2.7ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (18.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (3.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
+ [1m[35m (15.8ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (26.7ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (6.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (7.0ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35m (11.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (3.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 265ms (Views: 0.4ms | ActiveRecord: 21.8ms)
+ [1m[35mCadenero::V1::Account Load (3.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (3.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
+ [1m[36m (14.6ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.9ms)[0m ROLLBACK
- [1m[36m (2.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (31.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (0.3ms)[0m BEGIN
- [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
- [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
- [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (87.1ms)[0m 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}
+ [1m[35m (1.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (6.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (14.5ms)[0m 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]]
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (8.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (6.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.5ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (5.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (13.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (16.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (23.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (15.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (16.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (10.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (1.8ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ejxmmSofZbCChsRA1tWz' LIMIT 1[0m
+Completed 201 Created in 699ms (Views: 2.8ms | ActiveRecord: 195.7ms)
+ [1m[35mCadenero::V1::Account Load (1.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (9.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
+ [1m[36m (68.8ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (1.6ms)[0m [1mALTER 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[0m
+ [1m[35m (14.9ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (43.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (3.0ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (26.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.6ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (5.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YxMVfeFqHST44fxWDhX2' LIMIT 1[0m
+Completed 500 Internal Server Error in 729ms
+ [1m[35m (5.8ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (17.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (6.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.3ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (2.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 213ms (Views: 0.5ms | ActiveRecord: 2.7ms)
+ [1m[35mCadenero::V1::Account Load (3.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (39.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (35.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (24.7ms)[0m 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
+ [1m[36m (9.4ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (4.2ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (7.2ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.6ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (1.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZDPppdVqfWT57kH5Bt1T' LIMIT 1[0m
+Completed 500 Internal Server Error in 703ms
+ [1m[35m (9.7ms)[0m ROLLBACK
+ [1m[36m (8.0ms)[0m [1mALTER 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[0m
+ [1m[35m (48.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.9ms)[0m [1mALTER 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[0m
+ [1m[35m (1.0ms)[0m BEGIN
+ [1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (6.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (12.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 234ms (Views: 0.3ms | ActiveRecord: 12.6ms)
+ [1m[35mCadenero::V1::Account Load (14.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (13.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (27.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (3.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (23.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (13.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (8.1ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (8.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.6ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (3.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (7.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (4.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sspxYgdAxNxAzC3rsjJC' LIMIT 1[0m
+Completed 500 Internal Server Error in 768ms
+ [1m[35m (6.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (61.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (5.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (10.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 251ms (Views: 0.7ms | ActiveRecord: 10.5ms)
+ [1m[35mCadenero::V1::Account Load (15.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (3.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (41.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (1.0ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (36.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (1.3ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (4.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (9.7ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (7.7ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (5.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (7.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (13.8ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (13.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (6.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (11.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kpBotXQKpisgjRpTPaN2' LIMIT 1[0m
+Completed 500 Internal Server Error in 881ms
+ [1m[35m (3.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (56.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (8.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.4ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (8.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 256ms (Views: 0.4ms | ActiveRecord: 8.0ms)
+ [1m[35mCadenero::V1::Account Load (9.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (8.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (2.4ms)[0m 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
+ [1m[36m (18.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.8ms)[0m 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
+ [1m[36m (0.9ms)[0m [1mALTER 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[0m
+ [1m[35m (9.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (54.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (2.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (9.1ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (13.5ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (9.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+Completed 500 Internal Server Error in 758ms
+ [1m[36m (11.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (4.7ms)[0m 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]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (2.4ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (3.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (5.7ms)[0m ROLLBACK
+ [1m[36m (1.9ms)[0m [1mALTER 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[0m
+ [1m[35m (21.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (6.7ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.5ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (19.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (2.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (8.9ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1[0m
- [1m[35mSQL (2.9ms)[0m 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}
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (1.4ms)[0m ROLLBACK
+ [1m[36m (1.9ms)[0m [1mALTER 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[0m
+ [1m[35m (29.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.8ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m CREATE SCHEMA "test"
+ [1m[36m (16.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.2ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (8.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (1.0ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+Completed 500 Internal Server Error in 311ms
+ [1m[35m (4.9ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (16.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (10.8ms)[0m [1mALTER 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[0m
+ [1m[35m (2.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (17.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.0ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (1.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (2.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (17.9ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (1.3ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (11.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (1.9ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (39.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (18.5ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (4.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (0.4ms)[0m CREATE SCHEMA "test"
+ [1m[36m (15.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (2.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (5.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (9.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+Completed 500 Internal Server Error in 297ms
+ [1m[35m (4.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (26.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (7.3ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (9.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (17.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (14.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (4.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.0ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (11.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (1.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jSNpZJK9yA34hyRuAZrr' LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (3.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (3.3ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 760ms (Views: 3.3ms | ActiveRecord: 100.3ms)
+ [1m[36mCadenero::V1::Account Load (15.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (17.0ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (60.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (5.8ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (8.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 187ms (Views: 0.3ms | ActiveRecord: 8.7ms)
+ [1m[35mCadenero::V1::Account Load (3.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (20.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (40.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (12.0ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (1.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (15.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (7.6ms)[0m 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)
+ [1m[36m (26.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (30.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (22.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (22.3ms)[0m ROLLBACK
+ [1m[36m (26.8ms)[0m [1mALTER 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[0m
+ [1m[35m (34.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (21.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (10.2ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.7ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (6.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dbsUHsxT9p1PPaJDpjjg' LIMIT 1[0m
+ [1m[35m (2.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (6.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (3.4ms)[0m 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]]
+ [1m[36mSQL (7.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 599ms (Views: 1.9ms | ActiveRecord: 86.8ms)
+ [1m[36mCadenero::V1::Account Load (7.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (8.8ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (44.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (13.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (50.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (13.9ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (6.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 165ms (Views: 0.4ms | ActiveRecord: 6.5ms)
+ [1m[35mCadenero::V1::Account Load (2.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (5.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (2.3ms)[0m 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
+ [1m[36m (44.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (8.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (4.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[35mSQL (0.5ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "www"
+ [1m[36m (15.1ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (4.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (6.2ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (5.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (6.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'anpkFf5P7ZxeUzaugGGn' LIMIT 1
+ [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'anpkFf5P7ZxeUzaugGGn', "updated_at" = '2013-06-29 04:00:53.181191' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (5.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (12.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test2"[0m
+ [1m[35m (5.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.5ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (13.4ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.9ms)[0m 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
+ [1m[36mCadenero::User Load (0.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (0.9ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 150ms (Views: 32.1ms | ActiveRecord: 3.3ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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
+ [1m[36mCadenero::User Load (0.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
+ [1m[35m (6.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (22.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.5ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.9ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (5.2ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (2.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (5.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (5.2ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.6ms)[0m 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
+ [1m[36mCadenero::User Load (0.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 120ms (Views: 8.4ms | ActiveRecord: 2.4ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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}
+ [1m[36mCadenero::User Load (0.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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"}}
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36m (8.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (15.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.5ms)[0m [1mCREATE SCHEMA "www"[0m
- [1m[35m (9.1ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (4.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (19.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (27.6ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (15.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (15.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (9.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (12.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (13.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (6.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (1.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)
+ [1m[35mCadenero::V1::Account Load (3.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (6.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (23.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (10.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (15.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (7.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (11.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (9.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (13.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (5.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (2.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (0.9ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms)
+ [1m[35mCadenero::V1::Account Load (1.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (3.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (8.0ms)[0m 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
+ [1m[36m (23.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (6.6ms)[0m [1mBEGIN[0m
+ [1m[35m (1.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (5.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (5.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (15.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.7ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.4ms)[0m CREATE SCHEMA "test7"
+ [1m[36m (5.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (5.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (7.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (3.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (2.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (23.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.0ms)[0m 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
+ [1m[36m (3.9ms)[0m [1mBEGIN[0m
+ [1m[35m (13.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (7.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.4ms)[0m CREATE SCHEMA "test8"
+ [1m[36m (12.3ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (6.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (15.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (12.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (13.3ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (5.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (3.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (25.5ms)[0m 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]]
+ [1m[36mSQL (4.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (2.1ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 233ms (Views: 12.5ms | ActiveRecord: 35.8ms)
+ [1m[35mCadenero::V1::Account Load (3.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (6.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (5.9ms)[0m 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
+ [1m[36m (25.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.8ms)[0m 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
+ [1m[36m (8.5ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (21.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (6.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (21.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.8ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (8.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (8.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (2.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36m (1.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (19.6ms)[0m 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]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.5ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (2.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (5.5ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 259ms (Views: 44.3ms | ActiveRecord: 32.6ms)
+ [1m[35mCadenero::V1::Account Load (4.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (7.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (21.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (4.9ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (2.8ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (30.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (3.9ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (53.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (1.8ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.7ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "www"
+ [1m[36m (11.3ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.7ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9RdqTHeqRcDGMnh8zsmm' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (7.4ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = '9RdqTHeqRcDGMnh8zsmm', "updated_at" = '2013-06-29 04:03:28.722800' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (5.9ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (21.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (3.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (8.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (7.8ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (22.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.9ms)[0m [1mALTER 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[0m
+ [1m[35m (0.9ms)[0m BEGIN
+ [1m[36m (3.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (8.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.8ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (13.4ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[35m (4.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (3.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.5ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (1.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.7ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (6.2ms)[0m ROLLBACK
+ [1m[36m (1.2ms)[0m [1mALTER 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[0m
+ [1m[35m (21.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mCREATE SCHEMA "test6"[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (3.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.0ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (1.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (4.5ms)[0m ROLLBACK
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (15.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (1.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (10.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35mSQL (27.1ms)[0m 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]]
+ [1m[36m (2.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test7"[0m
+ [1m[35m (5.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (14.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.1ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (4.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.8ms)[0m 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
+ [1m[36mCadenero::User Load (1.8ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (3.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (7.1ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 277ms (Views: 14.7ms | ActiveRecord: 14.0ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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
+ [1m[36mCadenero::User Load (1.5ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.5ms)
+ [1m[35m (8.6ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (36.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (3.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (2.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (7.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (3.1ms)[0m 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]]
+ [1m[36m (1.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (6.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test8"[0m
+ [1m[35m (11.7ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (7.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.1ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.5ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (18.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (33.5ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (4.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (1.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1[0m
+ [1m[35mCadenero::User Load (2.7ms)[0m 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
+ [1m[36mCadenero::User Load (15.5ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (7.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (7.8ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 191ms (Views: 9.0ms | ActiveRecord: 34.2ms)
+ [1m[35mCadenero::V1::Account Load (1.3ms)[0m 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}
+ [1m[36mCadenero::User Load (1.2ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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"}}
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36m (6.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (6.5ms)[0m 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
+ [1m[36m (37.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (17.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (2.0ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (25.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (21.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (17.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (9.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (12.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (12.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
- [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sLHoJ4msSAyV8fW15ShG' LIMIT 1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
- [1m[35m (6.9ms)[0m ROLLBACK
- [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (12.5ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mYsP589QEDk2KZoppuNw' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (3.6ms)[0m 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]]
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (8.0ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 455ms (Views: 3.1ms | ActiveRecord: 197.6ms)
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (7.3ms)[0m ROLLBACK
+ [1m[36m (3.9ms)[0m [1mALTER 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[0m
+ [1m[35m (46.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.2ms)[0m [1mALTER 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[0m
+ [1m[35m (9.3ms)[0m BEGIN
+ [1m[36m (2.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (11.2ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 170ms (Views: 0.3ms | ActiveRecord: 11.2ms)
+ [1m[35mCadenero::V1::Account Load (13.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (4.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (13.3ms)[0m ROLLBACK
+ [1m[36m (7.2ms)[0m [1mALTER 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[0m
+ [1m[35m (24.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (9.9ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (2.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (54.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.8ms)[0m 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
- [1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (2.5ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (19.1ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (12.2ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (23.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (1.9ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
- [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (9.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (13.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (29.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (10.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (10.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (13.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (5.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.1ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (24.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (10.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (2.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (5.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (5.6ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (3.3ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (18.3ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (1.0ms)[0m 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"}}
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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)
+ [1m[35m (19.8ms)[0m ROLLBACK
+ [1m[36m (14.5ms)[0m [1mALTER 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[0m
+ [1m[35m (40.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (10.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (6.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test2"[0m
+ [1m[35m (8.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (9.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (2.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (6.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (2.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (3.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
+ [1m[35mCadenero::User Load (6.4ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (9.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (39.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (8.8ms)[0m [1mALTER 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[0m
+ [1m[35m (2.2ms)[0m BEGIN
+ [1m[36m (5.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (12.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (11.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (7.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.5ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (7.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (13.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (2.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.0ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.8ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (10.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
- [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (11.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.2ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (4.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (18.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (3.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (4.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (13.3ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (8.5ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (19.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (5.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (4.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (2.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.8ms)[0m 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
+ [1m[36mCadenero::User Load (2.6ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (7.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (1.9ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 227ms (Views: 5.9ms | ActiveRecord: 13.6ms)
+ [1m[35mCadenero::V1::Account Load (8.5ms)[0m 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
+ [1m[36mCadenero::User Load (8.1ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 8.1ms)
+ [1m[35m (28.5ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (31.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (2.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (8.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.2ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (7.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (7.1ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test6"[0m
+ [1m[35m (15.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (10.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (24.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (21.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (7.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.5ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (2.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (7.8ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (38.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (8.0ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[35mSQL (0.5ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mROLLBACK[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (14.1ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (5.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (7.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.1ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (12.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pTA2srJnLuADMKVppvnG' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'pTA2srJnLuADMKVppvnG', "updated_at" = '2013-06-29 04:04:45.480511' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (7.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (16.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (1.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m CREATE SCHEMA "test8"
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (3.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (7.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (6.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (0.7ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 196ms (Views: 79.5ms | ActiveRecord: 9.6ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (7.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (19.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (7.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
- [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (19.7ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
-Connecting to database specified by database.yml
- [1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (27.3ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (31.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.2ms)[0m 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}
+ [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test"
+ [1m[36m (5.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (5.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (5.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (7.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (12.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (9.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Kcj6WHxfpxz91dBXEhV3' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Completed 201 Created in 248ms (Views: 1.8ms | ActiveRecord: 70.2ms)
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (3.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (16.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.3ms)[0m ROLLBACK
- [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (39.7ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (0.4ms)[0m BEGIN
- [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (26.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (52.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.8ms)[0m 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
+ [1m[36m (101.0ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (16.0ms)[0m [1mALTER 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[0m
+ [1m[35m (18.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (7.6ms)[0m 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)
+ [1m[36m (7.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (55.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (4.2ms)[0m [1mALTER 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[0m
+ [1m[35m (2.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (47.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (20.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (58.9ms)[0m 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]]
+ [1m[35mCadenero::V1::Account Exists (2.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (3.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.9ms)[0m 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]]
+ [1m[36m (7.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.9ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (19.5ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (5.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (12.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (10.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (3.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (8.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (1.1ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 46ms (Views: 0.4ms | ActiveRecord: 9.2ms)
+ [1m[35mCadenero::V1::Account Load (16.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (16.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (13.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (9.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (12.9ms)[0m 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]]
+ [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test2"
+ [1m[36m (8.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (3.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (10.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (11.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (4.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (5.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (3.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (1.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
+ [1m[36mCadenero::User Load (7.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 15ms (Views: 0.6ms | ActiveRecord: 9.5ms)
+ [1m[35mCadenero::V1::Account Load (13.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (4.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (11.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (6.5ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1[0m
- [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36mSQL (15.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (23.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (19.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (2.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.4ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (10.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (3.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (4.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (2.0ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (0.2ms)[0m 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)
+ [1m[36m (8.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (78.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35m (5.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (10.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test5"
+ [1m[36m (10.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (8.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.3ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (3.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
+ [1m[36mCadenero::User Load (1.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 5.2ms)
+ [1m[35mCadenero::V1::Account Load (6.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (5.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (24.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (9.3ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (12.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (3.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (7.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (10.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (8.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (8.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (1.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (2.4ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (1.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (0.4ms)[0m 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"}}
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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)
+ [1m[35m (10.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (26.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (2.4ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m 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]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (6.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.8ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (13.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LbzpMHJ3nDEp8MW1kXxe' LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'LbzpMHJ3nDEp8MW1kXxe', "updated_at" = '2013-06-29 04:06:34.138626' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (11.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (32.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (3.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
- [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (3.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test8"
+ [1m[36m (5.5ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (7.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36m (3.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.4ms)[0m 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]]
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[36mCadenero::User Load (0.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 132ms (Views: 5.6ms | ActiveRecord: 10.1ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (6.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (22.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test"[0m
[1m[35m (6.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[36m (5.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
[1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
[1m[36m (2.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (2.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (5.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (2.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (3.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
- [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'akdHFG1ceYqD2WvqotXU' LIMIT 1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
- [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
- [1m[35m (6.3ms)[0m ROLLBACK
- [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (16.0ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
-Connecting to database specified by database.yml
- [1m[36m (0.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (24.6ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zYRqQw7qEzZQReLSsSsD' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 281ms (Views: 5.9ms | ActiveRecord: 45.0ms)
+ [1m[36mCadenero::V1::Account Load (0.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (8.3ms)[0m ROLLBACK
+ [1m[36m (1.0ms)[0m [1mALTER 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[0m
+ [1m[35m (17.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (3.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (25.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (2.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (63.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (1.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (51.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (26.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (6.9ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (10.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (31.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (1.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (45.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.9ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mALTER 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[0m
+ [1m[35m (8.7ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (32.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (25.3ms)[0m 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
+ [1m[36m (4.3ms)[0m [1mBEGIN[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (5.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (6.7ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (0.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.2ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.8ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (2.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RVvAAiyYpmn1gMxaiA6A' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (9.3ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36mSQL (9.1ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
- [1m[36mSQL (2.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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)
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (42.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (54.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (1.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Exists (10.2ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (2.1ms)[0m [1mALTER 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[0m
+ [1m[35m (12.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (2.2ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (9.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.9ms)[0m 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
+ [1m[36m (32.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (2.9ms)[0m ROLLBACK
+ [1m[36m (1.2ms)[0m [1mALTER 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[0m
+ [1m[35m (78.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (3.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.6ms)[0m 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]]
- [1m[36m (2.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (4.4ms)[0m CREATE SCHEMA "test1"
- [1m[36m (16.2ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (19.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (11.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (4.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (4.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (5.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (11.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (3.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (7.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:01 -0500
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test1"[0m
+ [1m[35m (6.7ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (14.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (6.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (4.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (45.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (25.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (8.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
- [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::User Load (1.4ms)[0m [1mSELECT "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[0m
- [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
- [1m[36mCadenero::Member Load (6.6ms)[0m [1mSELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1[0m
- [1m[35mCadenero::V1::Account Load (1.8ms)[0m 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)
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:02 -0500
+ [1m[36mCadenero::V1::Account Load (2.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1[0m
+ [1m[35mCadenero::User Load (3.5ms)[0m 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
+ [1m[36mCadenero::User Load (6.0ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (5.4ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 297ms (Views: 72.0ms | ActiveRecord: 17.7ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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
- [1m[35mCadenero::User Load (0.4ms)[0m 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)
- [1m[36m (3.3ms)[0m [1mROLLBACK[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (15.3ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36mCadenero::User Load (2.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.3ms)
+ [1m[35m (5.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (43.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (3.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (13.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (28.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (18.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.8ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mCREATE SCHEMA "test2"[0m
+ [1m[35m (21.3ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (23.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (18.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (28.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (11.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (15.2ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (3.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (1.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
+ [1m[35mCadenero::User Load (2.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (8.6ms)[0m ROLLBACK
+ [1m[36m (1.7ms)[0m [1mALTER 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[0m
+ [1m[35m (44.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (2.9ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.6ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (21.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (12.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (6.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.0ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (3.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (25.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (11.8ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.7ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (19.8ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (15.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (4.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (7.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (4.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
+ [1m[35mSQL (2.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test4"[0m
+ [1m[35m (11.5ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (3.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1[0m
+ [1m[35mCadenero::User Load (15.5ms)[0m 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
+ [1m[36mCadenero::User Load (17.6ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (15.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (38.8ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 253ms (Views: 7.0ms | ActiveRecord: 90.4ms)
+ [1m[35mCadenero::V1::Account Load (8.6ms)[0m 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}
+ [1m[36mCadenero::User Load (1.2ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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"}}
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36m (19.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (45.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (9.6ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (5.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
- [1m[35m (1.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[35m (0.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (2.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
- [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (8.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[35mSQL (1.3ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m CREATE SCHEMA "test2"
- [1m[36m (8.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (3.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (6.0ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test5"
+ [1m[36m (10.5ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (19.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (16.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (11.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.9ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (2.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (11.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.9ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (5.0ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
+ [1m[36mCadenero::User Load (1.1ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.6ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (18.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (31.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.9ms)[0m 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
+ [1m[36m (4.8ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (40.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (6.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (44.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.9ms)[0m 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
+ [1m[36m (1.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (2.3ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "www"
+ [1m[36m (5.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (4.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (8.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aU8NDjG555VUhuWvkQ6r' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'aU8NDjG555VUhuWvkQ6r', "updated_at" = '2013-06-29 04:08:18.618816' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (8.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (22.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test8"[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (8.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m 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}
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2[0m
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (7.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (21.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.2ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (5.5ms)[0m [1mALTER 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[0m
+ [1m[35m (2.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (32.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (37.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (46.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (2.7ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (25.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (17.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (1.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (20.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (6.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (15.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (13.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (7.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (22.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (4.6ms)[0m 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]]
+ [1m[36mSQL (6.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (1.0ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (55.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.9ms)[0m 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
+ [1m[36m (2.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (1.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (4.0ms)[0m 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
+ [1m[36m (55.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (5.6ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (23.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (1.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (1.3ms)[0m [1mALTER 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[0m
+ [1m[35m (38.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (5.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (5.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (1.3ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (5.9ms)[0m [1mALTER 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[0m
+ [1m[35m (47.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.3ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.6ms)[0m [1mALTER 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[0m
+ [1m[35m (2.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (22.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (24.9ms)[0m 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]]
+ [1m[36mSQL (4.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (4.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (19.3ms)[0m 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
+ [1m[36m (0.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (31.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (5.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (1.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (79.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (13.1ms)[0m [1mALTER 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[0m
+ [1m[35m (5.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (21.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (21.6ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.1ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (13.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (12.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (5.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.9ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (9.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-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}
+ [1m[35mCadenero::V1::Account Load (1.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.6ms)[0m 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]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (4.8ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (11.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (12.2ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 309ms (Views: 82.0ms | ActiveRecord: 33.0ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (17.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (34.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (10.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (2.4ms)[0m 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]]
+ [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (3.0ms)[0m 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
+ [1m[36m (0.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (23.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.6ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (4.2ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (53.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36m (12.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (2.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.8ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (6.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test"
+ [1m[36m (5.3ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.7ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (16.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (9.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8zqCBZE8Yj3cJqoNUyDA' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (2.0ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = '8zqCBZE8Yj3cJqoNUyDA', "updated_at" = '2013-06-29 04:17:54.686172' WHERE "public"."cadenero_accounts"."id" = 1
+ [1m[36m (2.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Completed 201 Created in 582ms (Views: 1.9ms | ActiveRecord: 103.7ms)
+ [1m[35mCadenero::V1::Account Load (6.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (8.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (9.7ms)[0m 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
+ [1m[36m (37.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35m (51.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (9.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (15.6ms)[0m 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]]
+ [1m[36mSQL (4.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (20.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (3.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (50.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.0ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (10.3ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.7ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f3sRn5oVXGveBGMQEwkN' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'f3sRn5oVXGveBGMQEwkN', "updated_at" = '2013-06-29 04:18:00.517682' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (5.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (17.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.9ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (69.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (92.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.9ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (5.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m CREATE SCHEMA "test3"
+ [1m[36m (9.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.5ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (7.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
- [1m[35mCadenero::V1::Account Load (1.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
- [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
-Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 1.7ms)
- [1m[35mCadenero::V1::Account Load (1.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
- [1m[36m (6.4ms)[0m [1mROLLBACK[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (21.0ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" 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"}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms)
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (8.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (20.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (2.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (10.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (7.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (16.3ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 76ms (Views: 9.6ms | ActiveRecord: 1.1ms)
+ [1m[35mCadenero::V1::Account Load (2.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (14.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (2.7ms)[0m 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
+ [1m[36m (33.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (26.0ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
- [1m[36mSQL (3.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
- [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.4ms)[0m 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]]
- [1m[36m (3.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m CREATE SCHEMA "test3"
- [1m[36m (6.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (4.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (5.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (4.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (5.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (3.7ms)[0m SELECT version FROM "schema_migrations"
+ [1m[35mCadenero::V1::Account Exists (1.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (10.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (11.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (8.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-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"}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (1.8ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 2.3ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (5.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (19.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (1.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (9.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test7"
+ [1m[36m (17.7ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (11.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (9.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (9.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (4.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1
+ [1m[36mCadenero::User Load (1.5ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (1.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (3.0ms)[0m 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"}}
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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)
+ [1m[35m (12.9ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (40.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (2.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (8.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test8"[0m
+ [1m[35m (11.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (16.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (9.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (1.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (1.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.7ms)[0m 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
+ [1m[36mCadenero::User Load (0.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (12.5ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 256ms (Views: 7.8ms | ActiveRecord: 15.1ms)
+ [1m[35mCadenero::V1::Account Load (1.0ms)[0m 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
+ [1m[36mCadenero::User Load (4.6ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.6ms)
+ [1m[35m (9.6ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (23.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (4.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (40.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.8ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (10.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (6.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.6ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (15.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (8.2ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (8.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (15.5ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (3.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (4.3ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 28ms (Views: 0.4ms | ActiveRecord: 8.2ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (15.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (5.5ms)[0m 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
+ [1m[36m (46.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35m (6.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (14.1ms)[0m CREATE SCHEMA "test2"
+ [1m[36m (33.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (16.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (10.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (29.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (10.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (13.5ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (10.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (0.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
+ [1m[36mCadenero::User Load (0.9ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (1.5ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (5.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (6.2ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (6.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (8.8ms)[0m 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)
+ [1m[36m (20.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (62.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (3.0ms)[0m 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
+ [1m[36m (9.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (3.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.8ms)[0m 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]]
+ [1m[36m (2.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test3"
+ [1m[36m (10.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (3.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.5ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (5.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (20.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (6.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (9.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
[1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1
- [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
-Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)
+ [1m[36mCadenero::User Load (0.5ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms)
[1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
- [1m[36m (5.4ms)[0m [1mROLLBACK[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (31.9ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (3.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (70.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (7.5ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
- [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.8ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (6.0ms)[0m 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]]
- [1m[36m (5.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m CREATE SCHEMA "test4"
- [1m[36m (4.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (4.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (5.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (3.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (4.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (4.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (5.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (2.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (15.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (11.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (4.0ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-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"}
- [1m[35mCadenero::V1::Account Load (1.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
- [1m[36mCadenero::User Load (1.2ms)[0m [1mSELECT "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[0m
- [1m[35mCadenero::User Load (23.3ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
- [1m[36mCadenero::Member Load (10.7ms)[0m [1mSELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1[0m
- [1m[35mCadenero::V1::Account Load (5.8ms)[0m 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)
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1[0m
-Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:03 -0500
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (1.2ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (9.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1[0m
+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}
[1m[35mCadenero::User Load (0.3ms)[0m 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"}}
[1m[36mCACHE (0.0ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
-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)
- [1m[35m (5.7ms)[0m ROLLBACK
- [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (20.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (2.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (0.7ms)[0m BEGIN
- [1m[36m (1.9ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (9.5ms)[0m 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]]
- [1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (3.5ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (2.2ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
- [1m[35mSQL (1.4ms)[0m 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]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (8.9ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (30.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (15.5ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.4ms)[0m 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]]
+ [1m[36m (4.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test5"[0m
- [1m[35m (6.5ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (3.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (5.9ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (2.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (2.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
- [1m[36m (3.7ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36mCadenero::V1::Account Exists (2.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (3.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.6ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (17.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (14.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (3.9ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (3.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (2.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1[0m
- [1m[35mSQL (0.6ms)[0m 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]]
- [1m[36m (2.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:04 -0500
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (20.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.1ms)[0m 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"}
- [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
- [1m[35mCadenero::User Load (2.7ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
+ [1m[35mCadenero::User Load (7.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (8.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (10.8ms)[0m ROLLBACK
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (50.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (2.9ms)[0m [1mALTER 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[0m
+ [1m[35m (12.8ms)[0m 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)
+ [1m[36m (1.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (50.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (2.0ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (6.9ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (43.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (4.2ms)[0m BEGIN
+ [1m[36m (3.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (8.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35mSQL (2.0ms)[0m 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]]
+ [1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (8.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test7"[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (5.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (5.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (10.2ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (4.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (7.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36mCadenero::V1::Account Load (2.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (35.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (11.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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)
[1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
- [1m[35m (4.7ms)[0m ROLLBACK
- [1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (28.0ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (4.7ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (2.3ms)[0m BEGIN
- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[35m (8.8ms)[0m ROLLBACK
+ [1m[36m (7.7ms)[0m [1mALTER 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[0m
+ [1m[35m (22.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36m (6.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (10.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (4.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1[0m
+ [1m[35m (2.1ms)[0m CREATE SCHEMA "test"
+ [1m[36m (6.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.8ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (7.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (6.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x2x9ZyyUTFSibDwgDJJu' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'x2x9ZyyUTFSibDwgDJJu', "updated_at" = '2013-06-29 04:18:37.542549' WHERE "public"."cadenero_accounts"."id" = 1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Completed 201 Created in 305ms (Views: 1.8ms | ActiveRecord: 91.9ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (5.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (8.3ms)[0m 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
+ [1m[36m (36.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (19.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.8ms)[0m 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}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (8.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (5.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (44.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (10.5ms)[0m [1mALTER 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[0m
+ [1m[35m (16.2ms)[0m BEGIN
+ [1m[36m (8.1ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[35mSQL (1.0ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
- [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[35mSQL (0.5ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
- [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "www"[0m
- [1m[35m (4.2ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (5.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (3.1ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (4.7ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (5.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (2.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GoVCDDMwXC8yJ8wZtW2x' LIMIT 1[0m
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
- [1m[35m (8.5ms)[0m ROLLBACK
- [1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (23.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (0.7ms)[0m BEGIN
-Processing by Cadenero::V1::AccountsController#create as HTML
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.0ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (4.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (10.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (3.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sYshLPRGthY75yxwcLM9' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'sYshLPRGthY75yxwcLM9', "updated_at" = '2013-06-29 04:18:43.751658' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (6.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (15.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (2.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (0.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (22.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (18.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (22.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.8ms)[0m 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
+ [1m[36m (1.9ms)[0m [1mBEGIN[0m
+Processing by Cadenero::V1::AccountsController#create as JSON
Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}}
- [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mCNYE88uVjPDsn8pK74D' LIMIT 1[0m
-Completed 201 Created in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
- [1m[35mCadenero::V1::Account Load (0.2ms)[0m 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)
+ [1m[35m (8.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (27.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (0.4ms)[0m 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)
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (23.8ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (24.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35m (3.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (7.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (6.4ms)[0m 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]]
+ [1m[36mSQL (6.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (7.6ms)[0m 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
+ [1m[36m (5.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (30.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (59.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (6.8ms)[0m [1mALTER 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[0m
+ [1m[35m (27.4ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (6.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (10.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (4.4ms)[0m [1mCREATE SCHEMA "test1"[0m
+ [1m[35m (13.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (11.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (9.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (4.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (6.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (1.8ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.4ms)[0m 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]]
+ [1m[36m (5.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (5.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (9.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1[0m
+ [1m[35mCadenero::User Load (1.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (4.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (5.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (22.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
+ [1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
- [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (9.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (11.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (3.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (8.4ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (3.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
+ [1m[35mCadenero::User Load (4.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (3.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (15.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
+ [1m[35m (31.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
+ [1m[35mSQL (6.9ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test8"
- [1m[36m (5.1ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (2.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (12.3ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test4"[0m
+ [1m[35m (14.9ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (8.5ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (12.9ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (3.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1[0m
+ [1m[35mCadenero::User Load (8.9ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (14.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (7.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (31.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (11.2ms)[0m 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]]
+ [1m[36m (1.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (24.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (20.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (14.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (9.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (15.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (9.1ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (6.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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"}
+ [1m[36mCadenero::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
+ [1m[35mCadenero::User Load (0.9ms)[0m 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
+ [1m[36mCadenero::User Load (2.1ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1
+ [1m[36mCadenero::V1::Account Load (0.9ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 324ms (Views: 63.3ms | ActiveRecord: 4.8ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m 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}
+ [1m[36mCadenero::User Load (1.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
+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"}}
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36m (4.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (24.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (3.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (10.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (7.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (4.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.1ms)[0m 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]]
+ [1m[36m (2.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (10.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
[1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (2.7ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[35m (11.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (5.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (19.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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"}
+ [1m[35mCadenero::V1::Account Load (10.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (1.1ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.5ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (5.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (3.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (0.3ms)[0m 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)
+ [1m[36m (12.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (26.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35m (7.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (23.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (20.1ms)[0m 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]]
+ [1m[36mSQL (8.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (27.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (10.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (7.8ms)[0m 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]]
+ [1m[36m (6.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (2.0ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1
+ [1m[36m (5.7ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (6.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (3.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (32.4ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (6.7ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (14.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (3.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (3.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (3.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Y9uKiMwKSngsqSdqAzpd' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (1.7ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Y9uKiMwKSngsqSdqAzpd', "updated_at" = '2013-06-29 04:20:03.825578' WHERE "public"."cadenero_accounts"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 538ms (Views: 2.0ms | ActiveRecord: 225.4ms)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (3.6ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (37.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (3.6ms)[0m BEGIN
+ [1m[36m (1.9ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (15.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (2.7ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35m (10.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (19.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (1.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 235ms (Views: 0.3ms | ActiveRecord: 31.6ms)
+ [1m[35mCadenero::V1::Account Load (1.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (0.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (39.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (6.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (3.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test7"
+ [1m[36m (12.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (8.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (15.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36mSQL (15.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (9.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 229ms (Views: 7.0ms | ActiveRecord: 28.0ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (8.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.3ms)[0m 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
+ [1m[36m (31.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (1.4ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (5.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "www"
+ [1m[36m (6.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (10.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '67SxiB5okkwE9hQXRxH2' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = '67SxiB5okkwE9hQXRxH2', "updated_at" = '2013-06-29 04:20:10.434383' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (5.8ms)[0m ROLLBACK
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (15.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (25.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (13.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (2.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (5.0ms)[0m 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]]
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35mCACHE (0.0ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (14.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (0.8ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (40.0ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m 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}
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (2.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (10.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (7.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1[0m
+ [1m[35m (0.3ms)[0m CREATE SCHEMA "test"
+ [1m[36m (12.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (9.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (22.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (5.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (9.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (14.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (5.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5dk529hBeC5Qns77H6R4' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = '5dk529hBeC5Qns77H6R4', "updated_at" = '2013-06-29 04:35:32.548242' WHERE "public"."cadenero_accounts"."id" = 1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Completed 201 Created in 693ms (Views: 2.4ms | ActiveRecord: 189.7ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (11.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (30.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[36m (9.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.8ms)[0m 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]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (7.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (11.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (10.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (2.6ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (16.8ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (18.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (20.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (3.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (1.8ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (1.9ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (2.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (2.8ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (2.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (0.3ms)[0m 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)
+ [1m[36m (18.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
+ [1m[36m (29.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (3.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (1.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test2"
+ [1m[36m (42.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.7ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (10.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
+ [1m[36mCadenero::User Load (13.8ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 24ms (Views: 0.4ms | ActiveRecord: 14.3ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (5.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (2.2ms)[0m 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
+ [1m[36m (45.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (1.4ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (5.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (5.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (7.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (14.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (4.9ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.0ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (7.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (3.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (6.0ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 9.9ms)
+ [1m[35mCadenero::V1::Account Load (1.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (13.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (23.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (2.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (12.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (8.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (17.8ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (9.3ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test5"
+ [1m[36m (5.9ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (6.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (12.9ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (5.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (4.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
+ [1m[36mCadenero::User Load (5.2ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 17ms (Views: 7.1ms | ActiveRecord: 5.7ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (13.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (40.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (7.7ms)[0m [1mBEGIN[0m
+ [1m[35m (0.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (9.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (11.8ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (3.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (2.4ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (14.1ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (25.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (4.2ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (0.3ms)[0m 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)
+ [1m[36m (5.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (33.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (11.7ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (36.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (7.9ms)[0m [1mALTER 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[0m
+ [1m[35m (1.7ms)[0m 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)
+ [1m[36m (18.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (37.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (25.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (8.2ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (30.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1[0m
+ [1m[35mSQL (6.5ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.0ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (5.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (2.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (3.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LLzyueH5NyFZpKQG5KCo' LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'LLzyueH5NyFZpKQG5KCo', "updated_at" = '2013-06-29 04:35:41.691401' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (2.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (12.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.8ms)[0m 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
+ [1m[36m (30.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (2.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test8"
+ [1m[36m (7.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (12.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (10.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (3.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (7.1ms)[0m 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]]
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.5ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 154ms (Views: 6.4ms | ActiveRecord: 12.4ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (15.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (23.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.0ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (3.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (48.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (4.9ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (30.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (4.8ms)[0m [1mALTER 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[0m
+ [1m[35m (0.6ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (71.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.1ms)[0m 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
+ [1m[36m (8.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (12.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m CREATE SCHEMA "www"
+ [1m[36m (7.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (7.1ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-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
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E7xJqW2H9puR8PAyxyHD' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'E7xJqW2H9puR8PAyxyHD', "updated_at" = '2013-06-29 04:42:04.522201' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (13.5ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (20.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.0ms)[0m [1mALTER 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[0m
+ [1m[35m (0.5ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test2"[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (5.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.6ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (3.9ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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}
- [1m[35mCadenero::V1::Account Load (0.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (3.5ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2[0m
+ [1m[35mCadenero::V1::Account Load (0.8ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (5.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (20.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.8ms)[0m 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]]
- [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36mCadenero::User Load (0.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
- [1m[35mCadenero::Member Load (0.3ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2
- [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "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[0m
-Completed 201 Created in 114ms (Views: 5.5ms | ActiveRecord: 3.7ms)
- [1m[35mCadenero::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
- [1m[36m (5.3ms)[0m [1mROLLBACK[0m
- [1m[35m (0.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (18.6ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (5.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (4.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (5.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (5.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (5.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m 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)
+ [1m[36m (2.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (26.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (8.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (12.9ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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)
+ [1m[35m (7.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (20.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.6ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
- [1m[35mSQL (1.5ms)[0m 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]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-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
+ [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (10.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (12.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (3.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (14.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (12.7ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (11.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (32.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (5.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (6.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (21.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (11.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (5.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (6.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (3.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m 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]]
+ [1m[36m (6.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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)
+ [1m[35m (11.9ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (19.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.0ms)[0m 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]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test8"[0m
+ [1m[35m (35.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (3.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (14.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (6.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (2.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36m (6.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (5.5ms)[0m 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
+ [1m[36m (39.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (5.3ms)[0m 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]]
+ [1m[36m (3.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test9"
+ [1m[36m (6.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (11.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (7.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (5.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (4.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (15.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (5.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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)
+ [1m[35m (8.8ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (28.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (4.6ms)[0m [1mALTER 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[0m
+ [1m[35m (0.9ms)[0m BEGIN
+ [1m[36m (2.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (7.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (2.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (2.3ms)[0m 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]]
+ [1m[36m (1.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (9.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
-Completed 422 Unprocessable Entity in 189ms (Views: 0.3ms | ActiveRecord: 0.9ms)
- [1m[35mCadenero::V1::Account Load (0.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
- [1m[36m (0.3ms)[0m [1mROLLBACK[0m
- [1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (13.6ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
- [1m[36m (0.2ms)[0m [1mBEGIN[0m
-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)
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (1.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (41.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (24.8ms)[0m 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
+ [1m[36m (13.6ms)[0m [1mBEGIN[0m
+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}
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
- [1m[35mSQL (0.8ms)[0m 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]]
- [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36mSQL (14.8ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (1.0ms)[0m 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]]
+ [1m[36m (8.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1
- [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test"[0m
- [1m[35m (4.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (2.9ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
- [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (5.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (1.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (5.5ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (10.5ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.6ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (4.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.6ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XwQrcnCmXUAy4NL34qjw' LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (0.2ms)[0m 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)
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
- [1m[35m (3.1ms)[0m ROLLBACK
- [1m[36m (2.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (14.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL[0m
- [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gk5xNonfwn8pKuqNTNnb' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Gk5xNonfwn8pKuqNTNnb', "updated_at" = '2013-06-29 04:42:08.814363' WHERE "public"."cadenero_accounts"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 319ms (Views: 1.7ms | ActiveRecord: 88.2ms)
+ [1m[36mCadenero::V1::Account Load (0.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (9.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (29.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
- [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
- [1m[36m (0.4ms)[0m [1mROLLBACK[0m
- [1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (11.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[35mCadenero::V1::Account Exists (0.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
+ [1m[36m (1.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (22.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.7ms)[0m 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
[1m[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (30.5ms)[0m SAVEPOINT active_record_1
+ [1m[35m (2.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::User Load (3.9ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (7.2ms)[0m 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
+ [1m[36m (26.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.6ms)[0m 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
+ [1m[36m (14.1ms)[0m [1mALTER 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[0m
+ [1m[35m (2.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (23.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (41.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (11.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (8.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.6ms)[0m 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]]
+ [1m[36m (2.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (9.7ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (14.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (6.0ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (3.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.1ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (4.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (1.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.0ms)[0m 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]]
+ [1m[36mSQL (3.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (12.5ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (2.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (4.0ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 277ms (Views: 61.4ms | ActiveRecord: 25.7ms)
+ [1m[35mCadenero::V1::Account Load (7.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (7.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (22.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test2"
+ [1m[36m (28.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (4.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (4.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (7.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (6.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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)
+ [1m[35m (9.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (31.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (3.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1[0m
+ [1m[35mSQL (5.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.3ms)[0m [1mCREATE SCHEMA "test3"[0m
+ [1m[35m (14.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (3.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (23.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (8.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (5.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (12.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (28.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (10.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (18.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (10.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36m (3.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.7ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (9.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (10.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (11.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (4.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (5.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (3.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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)
+ [1m[35m (9.7ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (28.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (20.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (9.7ms)[0m 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]]
+ [1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.6ms)[0m [1mCREATE SCHEMA "test5"[0m
+ [1m[35m (7.7ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (6.6ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (9.6ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (7.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.9ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m 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)
+ [1m[36m (12.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (32.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (3.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (1.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (14.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (2.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (5.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test7"
+ [1m[36m (16.8ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (8.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (12.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (7.7ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (22.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (1.9ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (17.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1[0m
+ [1m[35mSQL (23.1ms)[0m 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]]
+ [1m[36m (13.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (9.9ms)[0m [1mCREATE SCHEMA "test8"[0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (7.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (39.3ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (29.8ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.2ms)[0m 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)
+ [1m[36m (31.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (40.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+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}
+ [1m[35m (4.8ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (3.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (1.2ms)[0m 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]]
+ [1m[36mSQL (11.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (4.7ms)[0m 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]]
+ [1m[36m (2.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1
+ [1m[36m (2.3ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (7.4ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (11.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (2.7ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (17.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (8.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (2.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'a8DW4yyEVdFYfnz2YDMM' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'a8DW4yyEVdFYfnz2YDMM', "updated_at" = '2013-06-29 04:44:08.847451' WHERE "public"."cadenero_accounts"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 331ms (Views: 4.4ms | ActiveRecord: 130.2ms)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (4.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (17.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (13.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (3.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (14.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35m (3.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (6.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (24.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 235ms (Views: 0.3ms | ActiveRecord: 34.4ms)
+ [1m[35mCadenero::V1::Account Load (9.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (6.4ms)[0m 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
+ [1m[36m (16.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (4.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
- [1m[35mSQL (0.9ms)[0m 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]]
- [1m[36mSQL (11.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (1.3ms)[0m 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]]
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (12.6ms)[0m 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]]
+ [1m[35mSQL (1.3ms)[0m 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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35mCadenero::User Load (0.7ms)[0m 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
- [1m[36m (10.2ms)[0m [1mROLLBACK[0m
- [1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL
- [1m[36m (54.9ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (6.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
+ [1m[35mCadenero::User Load (1.8ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (39.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1[0m
+ [1m[35m (6.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (12.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1[0m
+ [1m[35mSQL (3.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.2ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "www"[0m
+ [1m[35m (5.6ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (10.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (4.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.8ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.3ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VWBgpAuBX7x97jZRyq2J' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (3.2ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = 'VWBgpAuBX7x97jZRyq2J', "updated_at" = '2013-06-29 04:44:15.097319' WHERE "public"."cadenero_accounts"."id" = 2[0m
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_accounts" [0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_users"
+ [1m[36m (2.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.0ms)[0m 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
+ [1m[36m (19.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.8ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+ [1m[35m (24.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.5ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (23.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (5.8ms)[0m 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
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (25.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (19.3ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.5ms)[0m [1mALTER 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[0m
+ [1m[35m (10.1ms)[0m BEGIN
+ [1m[36m (2.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (7.0ms)[0m 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
+ [1m[36m (39.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (2.2ms)[0m 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
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35m (1.6ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (29.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.6ms)[0m [1mALTER 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[0m
+ [1m[35m (3.0ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (75.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (10.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (4.3ms)[0m [1mALTER 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[0m
+ [1m[35m (52.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (3.6ms)[0m [1mALTER 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[0m
+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
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (29.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.0ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (15.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (4.8ms)[0m [1mALTER 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[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (37.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (11.6ms)[0m 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
+ [1m[36m (1.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (40.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (82.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (21.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (51.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.8ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (16.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (53.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (44.0ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (16.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (2.9ms)[0m 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
+ [1m[36m (28.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (36.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.5ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.7ms)[0m [1mALTER 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[0m
+ [1m[35m (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (26.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.8ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (5.2ms)[0m [1mALTER 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[0m
+ [1m[35m (12.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (2.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (28.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (2.6ms)[0m [1mBEGIN[0m
+ [1m[35m (1.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (58.4ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (4.0ms)[0m [1mALTER 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[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36m (3.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (20.3ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (3.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (38.2ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mALTER 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[0m
+ [1m[35m (11.4ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (34.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (4.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (62.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (11.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (77.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (13.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (113.7ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.0ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (106.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (106.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (1.9ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (39.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (20.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (25.9ms)[0m 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
+ [1m[36m (49.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (15.8ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (20.7ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (31.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (3.8ms)[0m [1mALTER 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[0m
+ [1m[35m (28.5ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.0ms)[0m [1mALTER 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[0m
+ [1m[35m (2.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (23.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (13.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (6.9ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (4.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (2.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (2.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (7.1ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (3.9ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (12.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (1.0ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 39ms (Views: 0.4ms | ActiveRecord: 1.7ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (5.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (18.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (13.7ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (20.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (5.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test2"
+ [1m[36m (39.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (16.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (4.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (10.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (5.3ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
+ [1m[36mCadenero::User Load (2.5ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (1.9ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (4.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (0.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (4.4ms)[0m 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)
+ [1m[36m (4.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (20.8ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (3.8ms)[0m 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
+ [1m[36m (0.9ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (2.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (6.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (3.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (7.3ms)[0m 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]]
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test3"
+ [1m[36m (13.2ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (18.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (4.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.6ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (25.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (1.0ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (1.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1
+ [1m[36mCadenero::User Load (6.2ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (5.8ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (3.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (3.8ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (1.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (1.5ms)[0m 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)
+ [1m[36m (6.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (47.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (1.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (6.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.0ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (7.1ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (3.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (4.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.7ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (2.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (30.5ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (3.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (32.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (4.6ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (3.9ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (3.9ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (4.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.0ms)[0m CREATE SCHEMA "test5"
+ [1m[36m (10.1ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (11.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (10.9ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (9.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (15.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (6.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (29.6ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (10.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.8ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (2.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
+ [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms)
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (15.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (23.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (3.0ms)[0m [1mALTER 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[0m
+ [1m[35m (5.5ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
+ [1m[36m (27.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (1.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (19.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (22.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
+ [1m[36mSQL (14.3ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (6.2ms)[0m 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]]
+ [1m[36m (2.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.6ms)[0m CREATE SCHEMA "test1"
+ [1m[36m (20.6ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (12.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (8.3ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (23.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (13.9ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (11.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (2.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (3.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (16.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (3.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (5.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35mCadenero::V1::Account Load (2.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
+ [1m[36mCadenero::User Load (1.0ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 3.8ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (5.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.7ms)[0m 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
+ [1m[36m (23.1ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (13.8ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (7.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (12.1ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (4.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m 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]]
+ [1m[36m (2.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test3"
+ [1m[36m (28.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (8.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (11.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (20.2ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (7.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (3.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (9.3ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (2.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (3.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.3ms)
+ [1m[35mCadenero::V1::Account Load (5.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (7.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (4.3ms)[0m 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
+ [1m[36m (21.4ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (4.7ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (4.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (14.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (3.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (9.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (11.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (13.7ms)[0m 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]]
+ [1m[36m (24.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (15.5ms)[0m CREATE SCHEMA "test4"
+ [1m[36m (14.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (6.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (13.8ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (3.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (6.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (7.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (6.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (14.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (3.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
+ [1m[36mCadenero::User Load (1.9ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.4ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (2.3ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (2.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1[0m
+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}
+ [1m[35mCadenero::User Load (2.6ms)[0m 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)
+ [1m[36m (6.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (56.9ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (16.5ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1
+ [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test5"
+ [1m[36m (8.5ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (5.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (15.4ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (4.4ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (10.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (17.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (5.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (1.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
+ [1m[36mCadenero::User Load (8.8ms)[0m [1mSELECT "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[0m
+Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 10.6ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (8.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (36.6ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (7.5ms)[0m 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
+ [1m[36m (3.5ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
+ [1m[36mSQL (9.4ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (17.8ms)[0m 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]]
+ [1m[36m (3.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "test6"
+ [1m[36m (8.4ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (15.5ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (7.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.7ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (5.2ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (4.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
+ [1m[36mCadenero::User Load (0.7ms)[0m [1mSELECT "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[0m
+ [1m[35mCadenero::User Load (0.7ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1[0m
+ [1m[35mCadenero::V1::Account Load (0.6ms)[0m 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)
+ [1m[36mCadenero::V1::Account Load (7.8ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1[0m
+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
+ [1m[35mCadenero::User Load (6.7ms)[0m 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)
+ [1m[36m (4.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (52.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.8ms)[0m [1mBEGIN[0m
+ [1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (3.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1[0m
+ [1m[35mSQL (0.6ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m CREATE SCHEMA "www"
+ [1m[36m (4.3ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (13.6ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+ [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pnPDqworoeZdPrCxuBka' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'pnPDqworoeZdPrCxuBka', "updated_at" = '2013-06-29 05:18:44.377334' WHERE "public"."cadenero_accounts"."id" = 2
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "public"."cadenero_accounts"
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "public"."cadenero_users" [0m
+ [1m[35m (10.9ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (16.9ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (4.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.6ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mALTER 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[0m
+ [1m[35m (24.1ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (34.7ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+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}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (3.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test"[0m
+ [1m[35m (5.0ms)[0m CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[35m (1.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
+ [1m[36m (4.2ms)[0m [1mCREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
+ [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
+ [1m[35m (4.0ms)[0m CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
+ [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5RhPGbsqZhs8XNbHM3xL' LIMIT 1[0m
+ [1m[35m (3.9ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mUPDATE "public"."cadenero_accounts" SET "authentication_token" = '5RhPGbsqZhs8XNbHM3xL', "updated_at" = '2013-06-29 05:18:44.989439' WHERE "public"."cadenero_accounts"."id" = 1[0m
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+Completed 201 Created in 287ms (Views: 2.1ms | ActiveRecord: 46.3ms)
+ [1m[36mCadenero::V1::Account Load (0.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1[0m
+ [1m[35m (5.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mALTER 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[0m
+ [1m[35m (20.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (1.1ms)[0m [1mALTER 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[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+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}
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mCadenero::V1::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1[0m
+Completed 422 Unprocessable Entity in 108ms (Views: 0.3ms | ActiveRecord: 0.7ms)
+ [1m[35mCadenero::V1::Account Load (0.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (16.2ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+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)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (26.6ms)[0m TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;
+ [1m[36m (0.4ms)[0m [1mALTER 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[0m
+ [1m[35m (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (26.5ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (3.7ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (4.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mCadenero::V1::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36mSQL (4.1ms)[0m [1mINSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m 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]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m CREATE SCHEMA "test8"
+ [1m[36m (4.0ms)[0m [1mCREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
+ [1m[35m (7.8ms)[0m CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
+ [1m[36m (7.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
+ [1m[35m (1.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
+ [1m[36m (10.0ms)[0m [1mCREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (2.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
+ [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
+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}
+ [1m[35mCadenero::V1::Account Load (9.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (12.0ms)[0m 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]]
+ [1m[36mSQL (13.9ms)[0m [1mINSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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]]
+ [1m[35m (4.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mCadenero::User Load (0.9ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1[0m
+ [1m[35mCadenero::V1::Account Load (4.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2
+ [1m[36mCadenero::V1::Account Load (7.0ms)[0m [1mSELECT "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[0m
+Completed 201 Created in 332ms (Views: 6.2ms | ActiveRecord: 51.7ms)
+ [1m[35mCadenero::V1::Account Load (0.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
+ [1m[36m (17.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (24.0ms)[0m [1mTRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [1m[35m (1.0ms)[0m 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