spec/dummy/log/test.log in cadenero-0.0.2.a1 vs spec/dummy/log/test.log in cadenero-0.0.2.a2
- old
+ new
@@ -1,3480 +1,564 @@
Connecting to database specified by database.yml
- [1m[36m (1.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 (2.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (13.8ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (3.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[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 (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (1.5ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (12.6ms)[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 02:49:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$UwttoaeTWitf4gyknQMr8eovZ0ns.GTqFjCs2uL5iVYQrxxu7eh82"], ["updated_at", Fri, 28 Jun 2013 02:49:54 UTC +00:00]]
- [1m[35m (9.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[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.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 02:49:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 02:49: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.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 02:49:54 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:54 UTC +00:00], ["user_id", 1]]
+ [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]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.7ms)[0m CREATE SCHEMA "test1"
- [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.2ms)[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 (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.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 (15.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 (2.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.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-27 21:49: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 6ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:49:54 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user1@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
-valid? subdomain: ["test1"]
-subdomain: ["test1"]
- [1m[35mCadenero::V1::Account Load (11.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (0.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8CGysDLJUcJ69tceksTv' LIMIT 1[0m
-account: {"account":{"authentication_token":"8CGysDLJUcJ69tceksTv","created_at":"2013-06-28T02:49:54Z","id":1,"name":"Test Account #1","owner_id":1,"subdomain":"test1","updated_at":"2013-06-28T02:49:54Z"}}
-json_params[:user]:
-Completed 500 Internal Server Error in 32ms
- [1m[35m (10.5ms)[0m ROLLBACK
- [1m[36m (11.5ms)[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 (67.1ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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[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 02:49:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1cPqQEZVxv7xeo7ci1/2m.sUIM0YzwOWHvJ85iIPG3XnIKKnS1Oy."], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00]]
- [1m[36m (1.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]]
+ [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 (5.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
- [1m[35mSQL (1.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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00]]
- [1m[36m (2.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (3.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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["user_id", 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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.8ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (9.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 (32.2ms)[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 (2.0ms)[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.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 (6.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (1.9ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (2.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:49:55 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user2@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
-valid? subdomain: ["test2"]
-subdomain: ["test2"]
- [1m[36mCadenero::V1::Account Load (3.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (3.1ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sy6BTr72jGYiAhnCzdcR' LIMIT 1
-account: {"account":{"authentication_token":"sy6BTr72jGYiAhnCzdcR","created_at":"2013-06-28T02:49:55Z","id":1,"name":"Test Account #2","owner_id":1,"subdomain":"test2","updated_at":"2013-06-28T02:49:55Z"}}
-json_params[:user]:
-Completed 500 Internal Server Error in 11ms
- [1m[36m (3.7ms)[0m [1mROLLBACK[0m
- [1m[35m (0.7ms)[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.9ms)[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_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL
- [1m[36m (2.2ms)[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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$h7hyxGl4i4YlPdj4twBF6.0MKHhiVRPH16gIyFxo3513aQKlLLoua"], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00]]
- [1m[35m (4.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (4.8ms)[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" = 'test3' 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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 02:49: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.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 02:49:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m CREATE SCHEMA "test3"
- [1m[36m (10.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 (4.8ms)[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.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 (0.8ms)[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 (7.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 (5.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 (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.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
- [1m[35m (11.9ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (11.7ms)[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 02:49:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$fCZIJ4EdgFOA9fS2jeVMWu13mCiQMaWtd2Ubyrc2p8aqygMOzWCx."], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00]]
- [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 (1.1ms)[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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 02:49: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 (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", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:55 UTC +00:00], ["user_id", 2]]
+ [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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:49: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-27 21:49:55 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user4@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
-valid? subdomain: ["test3"]
-subdomain: ["test3"]
- [1m[35mCadenero::V1::Account Load (10.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1
- [1m[36mCadenero::V1::Account Load (9.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1u1vSwfhsn35vDZyvqoL' LIMIT 1[0m
-account: {"account":{"authentication_token":"1u1vSwfhsn35vDZyvqoL","created_at":"2013-06-28T02:49:55Z","id":1,"name":"Test Account #3","owner_id":1,"subdomain":"test3","updated_at":"2013-06-28T02:49:55Z"}}
-json_params[:user]:
-Completed 500 Internal Server Error in 25ms
- [1m[35m (6.1ms)[0m ROLLBACK
- [1m[36m (5.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 (25.5ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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.8ms)[0m BEGIN
- [1m[36m (7.3ms)[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", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$G9JaxXo/KYhES7Oon1tagumyGYWV6Rn4mmgbgSPrtIu1h4uU8RcuS"], ["updated_at", Fri, 28 Jun 2013 02:49:56 UTC +00:00]]
- [1m[36m (3.3ms)[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 (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", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 02:49:56 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.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", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:56 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", 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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test5"[0m
- [1m[35m (8.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 (4.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (3.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 (2.4ms)[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 (12.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 (4.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (5.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 (5.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (8.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (2.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:49:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:49:56 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
-valid? subdomain: ["test5"]
-subdomain: ["test5"]
- [1m[36mCadenero::V1::Account Load (2.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (1.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CXfxQWfJVrfEFBWQMHEm' LIMIT 1
-account: {"account":{"authentication_token":"CXfxQWfJVrfEFBWQMHEm","created_at":"2013-06-28T02:49:56Z","id":1,"name":"Test Account #5","owner_id":1,"subdomain":"test5","updated_at":"2013-06-28T02:49:56Z"}}
-json_params[:user]:
-Completed 500 Internal Server Error in 8ms
- [1m[36m (17.8ms)[0m [1mROLLBACK[0m
- [1m[35m (1.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 (21.5ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (4.9ms)[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 (2.0ms)[0m [1mBEGIN[0m
- [1m[35m (4.0ms)[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 02:49:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$HdcDQgqrXWrFnfZgXNStn.RARJUNKCa02UAGaUXTN7cWNbHBEB8ye"], ["updated_at", Fri, 28 Jun 2013 02:49:56 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (6.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (3.1ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
- [1m[36mSQL (7.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", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 02:49:56 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.7ms)[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", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:49:56 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test6"
- [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 (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 (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.0ms)[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 (16.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 (3.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (1.4ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.9ms)[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 21:49:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:49:56 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
-valid? subdomain: ["test6"]
-subdomain: ["test6"]
- [1m[35mCadenero::V1::Account Load (0.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1
- [1m[36mCadenero::V1::Account Load (1.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'M6isNGWCykwPyMXfpyma' LIMIT 1[0m
-account: {"account":{"authentication_token":"M6isNGWCykwPyMXfpyma","created_at":"2013-06-28T02:49:56Z","id":1,"name":"Test Account #6","owner_id":1,"subdomain":"test6","updated_at":"2013-06-28T02:49:56Z"}}
-json_params[:user]:
-Completed 500 Internal Server Error in 6ms
- [1m[35m (4.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 (25.9ms)[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
-Connecting to database specified by database.yml
- [1m[36m (11.5ms)[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 (17.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[36m (0.3ms)[0m [1mBEGIN[0m
- [1m[35m (1.8ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (18.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 02:51:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$VvwN1OGV.Tr0UzXGz.WpkeOuaLI2V5IIfz99uDacXkFPxoBPByt0a"], ["updated_at", Fri, 28 Jun 2013 02:51:47 UTC +00:00]]
- [1m[35m (3.6ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[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" = '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", Fri, 28 Jun 2013 02:51:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 02:51:47 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", Fri, 28 Jun 2013 02:51:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:47 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test1"
- [1m[36m (9.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 (2.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (6.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (7.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 (6.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (10.6ms)[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 (2.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-27 21:51:47 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:51:47 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user1@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 ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (9.8ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xQS8AvhJ4podvzy18aDp' LIMIT 1[0m
-Completed 500 Internal Server Error in 23ms
- [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 (25.4ms)[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.1ms)[0m BEGIN
- [1m[36m (14.5ms)[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", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$dfD0qK4GH9f.RIqRUwH86O0nsT2EQ6ApdE04k4l8RujYljDLXKwq2"], ["updated_at", Fri, 28 Jun 2013 02:51:48 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 (5.3ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1[0m
- [1m[35mSQL (3.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 02:51:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 02:51:48 UTC +00:00]]
- [1m[36m (2.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (4.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", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["user_id", 1]]
+ [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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (8.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 (3.7ms)[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 (30.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 (2.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 (7.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 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 (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[36m (0.8ms)[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[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.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
+ [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-27 21:51:48 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:51:48 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[36mCadenero::V1::Account Load (8.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (1.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1sMYugyxY47dRohzzmcj' LIMIT 1
-Completed 500 Internal Server Error in 19ms
- [1m[36m (4.8ms)[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 (33.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 (8.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (8.3ms)[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 02:51:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$tJFZEm20S4logvDUVFGG2O0Ga25RWUEEQIWaTOoX2VtioMQD3xyjS"], ["updated_at", Fri, 28 Jun 2013 02:51:48 UTC +00:00]]
- [1m[35m (1.8ms)[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 (8.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", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 02:51:48 UTC +00:00]]
- [1m[35m (9.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.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", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:48 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test3"
- [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 (16.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (14.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (9.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 (4.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (5.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 (7.4ms)[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.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (3.0ms)[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-27 21:51:48 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:51:48 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"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::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yYxjyjH92bprZN4N4oqP' LIMIT 1[0m
-Completed 500 Internal Server Error in 6ms
- [1m[35m (7.3ms)[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 (21.6ms)[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
- [1m[35m (0.1ms)[0m BEGIN
- [1m[36m (17.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (19.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 02:51:49 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$.L1qyVAZDhiXs2h703pOBez2K/Xdr6fVxgGiZsoaeWAhJU5ujaAWq"], ["updated_at", Fri, 28 Jun 2013 02:51:49 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.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 02:51:49 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.0ms)[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 02:51:49 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test4"[0m
- [1m[35m (12.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 (4.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (6.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (27.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 (2.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[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 (2.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.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.4ms)[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-27 21:51:49 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[36mCadenero::V1::Account Load (3.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (1.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gymxd7X26UgGmqfJp5hq' LIMIT 1
-Completed 500 Internal Server Error in 10ms
- [1m[36m (6.0ms)[0m [1mROLLBACK[0m
- [1m[35m (4.1ms)[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 (34.9ms)[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.1ms)[0m [1mBEGIN[0m
- [1m[35m (2.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (3.6ms)[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 02:51:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$1DRkSgdUMEddZ9rYMueHqOtHdl.cfq42ah96/wPFpVohN0qVS0D6W"], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00]]
- [1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (3.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (1.2ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 02:51:49 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.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", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test5"
- [1m[36m (4.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.4ms)[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 (3.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 (4.7ms)[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 (20.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 (3.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.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[35m (6.2ms)[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", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$fCOUAkDiZQd/w9.wPeJsfemrS9R6x2wXBnbnf3IAmdylogXIx5IYK"], ["updated_at", Fri, 28 Jun 2013 02:51:49 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 (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", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00]]
- [1m[35m (3.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (7.5ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.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", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:51:49 UTC +00:00], ["user_id", 2]]
- [1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:51:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:51:49 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[35mCadenero::V1::Account Load (2.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
- [1m[36mCadenero::V1::Account Load (2.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EUGWqZ85NKwJDpjLBpsN' LIMIT 1[0m
-Completed 500 Internal Server Error in 13ms
- [1m[35m (4.9ms)[0m ROLLBACK
+ [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 (52.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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 (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
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[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 (15.5ms)[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 (14.0ms)[0m [1mBEGIN[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (16.6ms)[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 02:54:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QoF5tPKC7SoSn3zxzOhIYOrknPwL4rbERPmjp9i9PaVScEdwlX5.W"], ["updated_at", Fri, 28 Jun 2013 02:54:24 UTC +00:00]]
+ [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 (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 (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.1ms)[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" = 'test1' 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", Fri, 28 Jun 2013 02:54:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 02:54:24 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (23.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 02:54:24 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:24 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.9ms)[0m CREATE SCHEMA "test1"
- [1m[36m (11.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.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 (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.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (12.8ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (30.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 (37.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 (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (11.9ms)[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-27 21:54:25 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:54:25 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[35mCadenero::V1::Account Load (2.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (0.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qfrTpizAxy9syT4obYJd' LIMIT 1[0m
-Completed 500 Internal Server Error in 14ms
- [1m[35m (211.1ms)[0m ROLLBACK
- [1m[36m (3.8ms)[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 (17.4ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (2.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 (5.7ms)[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 02:54:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$wiZihG30DkV92qb3vTsorOSbUZz2CJEG6aV4Gk6eYbzFKmhn1cI2q"], ["updated_at", Fri, 28 Jun 2013 02:54:25 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.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", Fri, 28 Jun 2013 02:54:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 02:54:25 UTC +00:00]]
- [1m[36m (5.7ms)[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", Fri, 28 Jun 2013 02:54:25 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:25 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (3.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 (2.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (4.0ms)[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 (1.5ms)[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 (7.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.7ms)[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')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:54:25 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:54:25 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user2@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[36mCadenero::V1::Account Load (1.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (4.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'znuoFZK1AFVFz2skUWsp' LIMIT 1
-Completed 500 Internal Server Error in 10ms
- [1m[36m (7.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 (57.5ms)[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 (2.3ms)[0m [1mBEGIN[0m
- [1m[35m (4.8ms)[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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$BHli/kGnTI6BwRp99CUy9.g57Qw6HeHY47FTAdrQDF0FUz6LtCdga"], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00]]
+ [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[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[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" = '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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 02:54:26 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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["user_id", 1]]
- [1m[36m (16.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.8ms)[0m CREATE SCHEMA "test3"
- [1m[36m (4.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.4ms)[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 (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 (1.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 (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 (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 (0.6ms)[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 POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:54:26 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user3@example.com", "password"=>"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 ('test3') LIMIT 1
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BQqD9pciGkNYoZT26vn8' LIMIT 1[0m
-Completed 500 Internal Server Error in 5ms
- [1m[35m (5.8ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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 (42.4ms)[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.2ms)[0m BEGIN
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (4.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 02:54:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$h2J4wXp9D3.QdjF0idiG3OAgOmVgCCnvKJA50.Mk1eocsxwLnRf1O"], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00]]
+ [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[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" = 'test4' 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 02:54:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00]]
- [1m[36m (0.8ms)[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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["user_id", 1]]
+ [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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mCREATE SCHEMA "test4"[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 (0.8ms)[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 (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 (1.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (26.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.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 (2.8ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (2.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (3.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:54:26 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:54:26 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"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.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (0.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R5EvKzKgFhy2vPprLxqj' LIMIT 1
-Completed 500 Internal Server Error in 6ms
- [1m[36m (15.9ms)[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 (36.9ms)[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[36m (0.3ms)[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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BaMA4.mwaULCuXpdK8JT3usOT0Wu1kc7bZz3MmjCgqZpaV5hWS7Nq"], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.0ms)[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" = 'test5' 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", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[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 02:54:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:26 UTC +00:00], ["user_id", 1]]
- [1m[36m (1.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m CREATE SCHEMA "test5"
- [1m[36m (22.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 (13.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (23.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (8.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 (2.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 (5.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 (2.8ms)[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 (0.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
- [1m[35m (1.0ms)[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", Fri, 28 Jun 2013 02:54:27 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$ps7Le65RYNN6xyoI5udFO.AhD4idu6.jLsTwKF26ViRGm98NOvCnO"], ["updated_at", Fri, 28 Jun 2013 02:54: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[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", Fri, 28 Jun 2013 02:54:27 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 02:54: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 (0.4ms)[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", Fri, 28 Jun 2013 02:54:27 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:54:27 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-27 21:54: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-27 21:54:27 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"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 ('test5') LIMIT 1
- [1m[36mCadenero::V1::Account Load (1.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2oZfmxuL1vHeFBmc5iA6' LIMIT 1[0m
-Completed 500 Internal Server Error in 9ms
- [1m[35m (4.3ms)[0m ROLLBACK
+ [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[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_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL[0m
- [1m[35m (15.7ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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 (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.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 (2.3ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (33.0ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (1.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 (32.2ms)[0m [1mBEGIN[0m
- [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (23.4ms)[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 02:56:46 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BLYeZPW6oU7Coaf6ekHjzuTwimvjwzGp0abXn1xrlypnhz2e742.e"], ["updated_at", Fri, 28 Jun 2013 02:56:46 UTC +00:00]]
- [1m[35m (19.6ms)[0m RELEASE SAVEPOINT active_record_1
+ [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.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[36m (0.2ms)[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" = '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 02:56:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 02:56:47 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 (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", Fri, 28 Jun 2013 02:56:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:47 UTC +00:00], ["user_id", 1]]
+ [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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m CREATE SCHEMA "test1"
- [1m[36m (59.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 (0.9ms)[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 (4.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.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.3ms)[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 (1.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
- [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", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mSTzr87B0ogNrL3NJJ0yde3SpYXyAnDZsGEzjmROUCLkDn.Aot7Yi"], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00]]
+ [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[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[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 (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", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00]]
- [1m[35m (0.5ms)[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", 2], ["created_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["user_id", 2]]
+ [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
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:48 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:56:48 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user2@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[35mCadenero::V1::Account Load (11.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (2.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FQNkDFSxNGex4KPGyv5U' LIMIT 1[0m
- [1m[35mCadenero::User Load (15.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 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1
-Completed 422 Unprocessable Entity in 65ms (Views: 0.4ms | ActiveRecord: 29.4ms)
- [1m[36mCadenero::V1::Account Load (25.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
- [1m[35m (17.6ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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 (53.0ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.1ms)[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[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[36m (0.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", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$2AsTm4ingDSd3MUaAdWYL.4q/2nnkWy.TJ6Q4T.HGhUzqGoToEOj."], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00]]
- [1m[36m (37.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (7.5ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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 02:56:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00]]
- [1m[36m (5.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.5ms)[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", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:48 UTC +00:00], ["user_id", 1]]
+ [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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test3"[0m
- [1m[35m (17.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 (7.0ms)[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 (10.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.5ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (4.6ms)[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 (4.9ms)[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.7ms)[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 (7.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:56:49 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"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.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (5.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BtQMq2u8okjmxNSz9Gv4' LIMIT 1
- [1m[36mCadenero::User Load (5.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" = 'foo@example.com' LIMIT 1[0m
-Completed 422 Unprocessable Entity in 20ms (Views: 0.4ms | ActiveRecord: 12.3ms)
- [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 (10.2ms)[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 (25.5ms)[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 (2.0ms)[0m [1mBEGIN[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.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 02:56:49 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$yEA2IPTcfH4063OjGC/Fxe//dMoGeyM75tQf4qf2J1xtjzdbcdrDO"], ["updated_at", Fri, 28 Jun 2013 02:56:49 UTC +00:00]]
- [1m[35m (2.4ms)[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" = 'test4' LIMIT 1
- [1m[36mSQL (18.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 02:56:49 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 02:56:49 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 (11.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", Fri, 28 Jun 2013 02:56:49 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:49 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m CREATE SCHEMA "test4"
- [1m[36m (6.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 (2.0ms)[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 (23.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.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (1.6ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (17.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 (4.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.7ms)[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[36m (10.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:56:49 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user4@example.com", "password"=>"password"}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[35mCadenero::V1::Account Load (4.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1
- [1m[36mCadenero::V1::Account Load (3.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZwosFFrwQE5fWsoq5upG' 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" = 'user4@example.com' LIMIT 1
- [1m[36mCadenero::User Load (5.2ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
- [1m[35mCadenero::Member Load (6.9ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1
- [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" = 1[0m
-Completed 201 Created in 353ms (Views: 54.6ms | ActiveRecord: 21.2ms)
- [1m[35mCadenero::V1::Account Load (1.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:50 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): true
- [1m[36mCadenero::User Load (4.3ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
-Completed 201 Created in 7ms (Views: 0.5ms | ActiveRecord: 4.3ms)
- [1m[35m (6.1ms)[0m ROLLBACK
- [1m[36m (3.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 (51.3ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.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.1ms)[0m BEGIN
- [1m[36m (0.8ms)[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", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$8dOXq7V2vZ64WLIC09ict.LhIcVU3oLFzL1iZ6mIQByH4UDmTLauG"], ["updated_at", Fri, 28 Jun 2013 02:56:50 UTC +00:00]]
- [1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[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" = 'test5' LIMIT 1[0m
- [1m[35mSQL (11.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", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 02:56:50 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.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", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["user_id", 1]]
- [1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test5"[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 (2.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
+ [1m[36m (0.4ms)[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.0ms)[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.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 (3.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (5.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.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[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.1ms)[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.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (3.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (3.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:50 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:56:50 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}, "default"=>:json, "controller"=>"cadenero/v1/account/sessions", "action"=>"create"}
- [1m[36mCadenero::V1::Account Load (1.4ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zzkHoLgzUCr8QqqkAszY' 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 9ms (Views: 0.3ms | ActiveRecord: 2.4ms)
- [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 (4.5ms)[0m [1mROLLBACK[0m
- [1m[35m (6.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 (41.2ms)[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 (4.0ms)[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 02:56:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$G4U6RLcAGXxUHwGEq2F.Wum/QTYPQq4X7qZ8k9c5/DDAD.5Nz2m/O"], ["updated_at", Fri, 28 Jun 2013 02:56:50 UTC +00:00]]
- [1m[35m (1.6ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[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" = 'test6' 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 02:56:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 02:56:50 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", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:56:50 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test6"
- [1m[36m (10.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 (3.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 (73.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 (26.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 (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.9ms)[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 (1.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (4.1ms)[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/sessions" for 127.0.0.1 at 2013-06-27 21:56:51 -0500
-Processing by Cadenero::V1::Account::SessionsController#create as HTML
- Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json}
-params: {"user"=>{"email"=>"user6@example.com", "password"=>"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 ('test6') LIMIT 1
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iihtFnXKec7aybpcuyo6' 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" = 'user6@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::Member Load (0.2ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1
- [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" = 1[0m
-Completed 201 Created in 164ms (Views: 4.6ms | ActiveRecord: 2.7ms)
- [1m[35mCadenero::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1
-Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:56:51 -0500
-Processing by Cadenero::V1::Account::SessionsController#delete as HTML
- Parameters: {"id"=>"1", "default"=>:json}
- [1m[36mCadenero::User Load (0.3ms)[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-28T02:56:50Z","email":"user6@example.com","id":1,"password_digest":"$2a$10$G4U6RLcAGXxUHwGEq2F.Wum/QTYPQq4X7qZ8k9c5/DDAD.5Nz2m/O","updated_at":"2013-06-28T02:56:50Z"}}
- [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:0x007f96241ee5f8>
-user_signed_in?: true
-Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:56:51 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[36m (5.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 (22.8ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (1.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
-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.2ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (30.3ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (29.9ms)[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 (72.5ms)[0m [1mBEGIN[0m
- [1m[35m (3.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (21.4ms)[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 02:58:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$VbczS58l4R97VnMFFhAbdeCFbeJA10MIoQESr27ZcScxj/Zrl6aNe"], ["updated_at", Fri, 28 Jun 2013 02:58:56 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.1ms)[0m [1mSAVEPOINT 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" = 'test1' 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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 02:58:57 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 (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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m CREATE SCHEMA "test1"
- [1m[36m (29.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.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (2.3ms)[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 (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (1.5ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (4.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.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.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (2.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 21:58:57 -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 7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:58:57 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (7.9ms)[0m ROLLBACK
- [1m[36m (0.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 (15.8ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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.1ms)[0m BEGIN
- [1m[36m (0.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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$TblXQaDxr2hG5XEsARxgH.3HE6Duy7oCivI1gPHYuCypbQzLPqj6G"], ["updated_at", Fri, 28 Jun 2013 02:58:57 UTC +00:00]]
- [1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (5.1ms)[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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 02:58:57 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.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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (8.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.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (3.7ms)[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 (1.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (5.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (26.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 (4.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[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.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.9ms)[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-27 21:58:57 -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 21:58:57 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (5.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 (22.3ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.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 (0.3ms)[0m [1mBEGIN[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (2.6ms)[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 02:58:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$eckCowojOOo/.kgexRqUf.2fY8uWDrT0sgfPpICxe.NyWr9rIYQCq"], ["updated_at", Fri, 28 Jun 2013 02:58:57 UTC +00:00]]
- [1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (8.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (2.8ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 02:58:57 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.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 02:58:57 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:57 UTC +00:00], ["user_id", 1]]
- [1m[36m (2.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.7ms)[0m CREATE SCHEMA "test3"
- [1m[36m (13.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.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 (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.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 (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 (3.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.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 21:58:58 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (10.9ms)[0m ROLLBACK
+ [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 (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 (23.1ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (2.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 (1.1ms)[0m BEGIN
- [1m[36m (5.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (18.6ms)[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 02:58:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$c8yp0a08ZjVqvlpgToxv.eBpTFu3.LyGG23iw4d5FZey9MtNmLlZ2"], ["updated_at", Fri, 28 Jun 2013 02:58:58 UTC +00:00]]
- [1m[36m (1.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (29.0ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (11.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
- [1m[35mSQL (26.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 02:58:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 02:58:58 UTC +00:00]]
- [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.5ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (12.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", Fri, 28 Jun 2013 02:58:58 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:58 UTC +00:00], ["user_id", 1]]
- [1m[35m (7.9ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.3ms)[0m [1mCREATE SCHEMA "test4"[0m
- [1m[35m (12.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 (4.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (13.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.1ms)[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 (7.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 (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (1.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 21:58:58 -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 21:58:58 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (9.9ms)[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 (27.8ms)[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 (11.7ms)[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 02:58:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$vHy0V8saRSjZGb9vSo8nl.YuK3qAp5vLNN9XIA1uU2bu6SfINS2mW"], ["updated_at", Fri, 28 Jun 2013 02:58:58 UTC +00:00]]
- [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.7ms)[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" = 'test5' 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", Fri, 28 Jun 2013 02:58:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 02:58:58 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.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", Fri, 28 Jun 2013 02:58:58 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:58 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 (6.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 (9.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (7.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (10.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 (11.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 (15.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 (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.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.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
- [1m[35m (1.3ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.6ms)[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 02:58:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$mWTCL0hCCiXwDl7pqQH9au1QyfMxKgE4ZlHQmjm2Jhj9RIrN3UVK2"], ["updated_at", Fri, 28 Jun 2013 02:58:59 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (3.0ms)[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" = '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", Fri, 28 Jun 2013 02:58:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 02:58:59 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 (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", 2], ["created_at", Fri, 28 Jun 2013 02:58:59 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 02:58:59 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-27 21:58:59 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 21:58:59 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (8.8ms)[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 (17.8ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
+ [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.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[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 (13.1ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.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[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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (17.6ms)[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 03:00:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$FHGOH9A7TeVtCO0NCUb2g.0.jBh4l/sLaANLUVCax8yP9kYPrrwoi"], ["updated_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00]]
- [1m[35m (1.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (5.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 28 Jun 2013 03:00:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00]]
+ [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.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.8ms)[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 03:00:12 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00], ["user_id", 1]]
- [1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.0ms)[0m CREATE SCHEMA "test1"
- [1m[36m (14.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.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (1.7ms)[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.8ms)[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 (6.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 (2.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
- [1m[35m (3.9ms)[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", Fri, 28 Jun 2013 03:00:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$vKMn4cb7aNzoFpVf8jIE6.6DRe6sy9ZiL0yTJ02KHCSdv.4UnhLNa"], ["updated_at", Fri, 28 Jun 2013 03:00: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 (0.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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 03:00:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00]]
+ [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]]
[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", 2], ["created_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:12 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:00: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 10ms (Views: 4.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:00:12 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (35.2ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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.4ms)[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.9ms)[0m BEGIN
- [1m[36m (0.1ms)[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", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$iWLuthC/T.wmmMb5nlVCC.gfFq2qrdJypacc5Hqelbhf68eIyvXpC"], ["updated_at", Fri, 28 Jun 2013 03:00:13 UTC +00:00]]
- [1m[36m (15.2ms)[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 (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 03:00:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:00:13 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.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", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.7ms)[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.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.8ms)[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 (3.2ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (4.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 (21.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (6.3ms)[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-27 22:00: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-27 22:00:13 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (8.0ms)[0m [1mROLLBACK[0m
- [1m[35m (0.4ms)[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 (25.9ms)[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 (0.2ms)[0m [1mBEGIN[0m
- [1m[35m (0.7ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.6ms)[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 03:00:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$aOzbmJgpMNDsCxHEEuGQhuK1Lw105nvszjW3SU4B1t6yJQ3XnZZkS"], ["updated_at", Fri, 28 Jun 2013 03:00:13 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.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 03:00:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:00:13 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.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", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["user_id", 1]]
- [1m[36m (8.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.6ms)[0m CREATE SCHEMA "test4"
- [1m[36m (3.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.7ms)[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 (3.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 (1.0ms)[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 (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 (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (4.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (30.1ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:00: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-27 22:00:13 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (9.4ms)[0m ROLLBACK
- [1m[36m (4.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 (30.5ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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.3ms)[0m BEGIN
- [1m[36m (4.3ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (5.4ms)[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 03:00:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$z1Wmd3JSl5ZilyKiuD4b.OhUUv.WOqUidD667QsYN7vSyhe459eDC"], ["updated_at", Fri, 28 Jun 2013 03:00:13 UTC +00:00]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (4.7ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:00:13 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 (4.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", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:13 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[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 (0.9ms)[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 (6.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.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (7.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (6.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.7ms)[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.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (2.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (8.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:00:14 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (5.9ms)[0m [1mROLLBACK[0m
- [1m[35m (0.4ms)[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.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 (1.6ms)[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", Fri, 28 Jun 2013 03:00:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$n1TF6nV30.9EX/dfDsBIZeH2oa5u14DMEhz2bGDNm0.MbRYRs8Zk6"], ["updated_at", Fri, 28 Jun 2013 03:00:14 UTC +00:00]]
- [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.8ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (3.6ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 28 Jun 2013 03:00:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:00:14 UTC +00:00]]
- [1m[35m (1.7ms)[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 03:00:14 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:00:14 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test6"
- [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 (8.4ms)[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.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 (3.6ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (11.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.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.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-27 22:00:14 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:00:14 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (8.2ms)[0m ROLLBACK
- [1m[36m (1.5ms)[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 (18.7ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (30.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
-Connecting to database specified by database.yml
- [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 (2.1ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (14.1ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (4.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.7ms)[0m [1mBEGIN[0m
- [1m[35m (0.9ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (23.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 03:02:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$7o7BCrBUJOnZRivLJSkiu.giw14C2kvmmLq2Mz2.NLNTjWr2HmCMy"], ["updated_at", Fri, 28 Jun 2013 03:02:21 UTC +00:00]]
- [1m[35m (4.7ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (7.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1
- [1m[36mSQL (3.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 03:02:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:02:21 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", Fri, 28 Jun 2013 03:02:21 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:21 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.5ms)[0m CREATE SCHEMA "test1"
- [1m[36m (9.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.2ms)[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 (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 (3.3ms)[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 (5.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.8ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (2.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (8.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-27 22:02:21 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:02:21 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (6.6ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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 (40.9ms)[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 (2.7ms)[0m BEGIN
- [1m[36m (0.8ms)[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", Fri, 28 Jun 2013 03:02:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$JeLtoBurLXC0Aiq6kVIBuuwxMHv9HK1B9D8YpGzCrHEa8ckSeLB4y"], ["updated_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00]]
- [1m[36m (5.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.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" = 'test2' LIMIT 1[0m
- [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", nil], ["created_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:02:22 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 03:02:22 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (7.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 (4.4ms)[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 (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 (2.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (3.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (7.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.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (70.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.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (1.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-27 22:02:22 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (14.2ms)[0m [1mROLLBACK[0m
- [1m[35m (2.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 (40.5ms)[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.4ms)[0m [1mBEGIN[0m
- [1m[35m (7.4ms)[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 03:02:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$FWjKHBohFxijtb/vSR0N1ungpePBGEO/4QbX..GxlDtcQ/oYPoacy"], ["updated_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00]]
- [1m[35m (1.6ms)[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 (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 03:02:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[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", Fri, 28 Jun 2013 03:02:22 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:22 UTC +00:00], ["user_id", 1]]
- [1m[36m (4.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[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 (2.5ms)[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 (7.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.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 (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 (16.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[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.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (7.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (3.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:02:22 -0500
+ [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
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 22:02:22 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (7.1ms)[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 (52.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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.2ms)[0m BEGIN
- [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (7.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 03:02:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$bRuEK3UT2heigr2G3TH8VOwPOzjDyX6mNXvkerWdHdruLB18I0iNC"], ["updated_at", Fri, 28 Jun 2013 03:02:23 UTC +00:00]]
- [1m[36m (1.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.5ms)[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" = 'test4' 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 03:02:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:02:23 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", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (3.8ms)[0m [1mCREATE SCHEMA "test4"[0m
- [1m[35m (12.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 (0.9ms)[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.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 (5.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (3.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (9.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 (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (4.0ms)[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 (2.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (2.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:02:23 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:02:23 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (4.5ms)[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 (28.6ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.7ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (5.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 03:02:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$pqdcz6i5yIBgvPsWlOycn.p0XwqsVXensmDb9KwDsPFJkGKWAeZta"], ["updated_at", Fri, 28 Jun 2013 03:02:23 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" = 'test5' LIMIT 1
- [1m[36mSQL (1.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 03:02:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:02:23 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 (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", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["user_id", 1]]
- [1m[36m (5.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.0ms)[0m CREATE SCHEMA "test5"
- [1m[36m (5.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.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (1.5ms)[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 (1.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 (25.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 (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.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[35m (11.8ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (44.4ms)[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 03:02:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$TDXg.J5Ok1EV7rV1uusrfOvgc7d8Rwrtuuh.yozoZd6idN30EHVj."], ["updated_at", Fri, 28 Jun 2013 03:02:23 UTC +00:00]]
- [1m[35m (4.4ms)[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 (7.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", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:02:23 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", 2], ["created_at", Fri, 28 Jun 2013 03:02:23 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:02:23 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-27 22:02:23 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:02:23 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (7.1ms)[0m ROLLBACK
- [1m[36m (2.5ms)[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 (50.7ms)[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
-Connecting to database specified by database.yml
- [1m[36m (1.8ms)[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 (12.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (28.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 03:03:45 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$I3DGnQaAKVHlOD4ZlxsCbOKXsVwZ5izevxrOaE1y3P9Xu4hDfBJaS"], ["updated_at", Fri, 28 Jun 2013 03:03:45 UTC +00:00]]
- [1m[35m (1.9ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[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" = 'test1' 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", Fri, 28 Jun 2013 03:03:45 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:03:45 UTC +00:00]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (9.9ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.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", Fri, 28 Jun 2013 03:03:45 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:45 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test1"
- [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 (5.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (5.3ms)[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 (2.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (2.5ms)[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 (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (15.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (3.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (14.5ms)[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 22:03:45 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:03:45 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (7.6ms)[0m ROLLBACK
- [1m[36m (0.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 (20.0ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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.3ms)[0m BEGIN
- [1m[36m (9.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.2ms)[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 03:03:46 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$VMZ.XXhIjC5QqG5ytMN.g.f4flyf98r4dpMR1pAOM1QW10DZD4Xxe"], ["updated_at", Fri, 28 Jun 2013 03:03:46 UTC +00:00]]
- [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (6.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.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", Fri, 28 Jun 2013 03:03:46 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:03:46 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.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 03:03:46 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:46 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (7.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.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (2.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (2.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 (5.5ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (16.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.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (5.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')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:03:46 -0500
+Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:01 -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
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 22:03:46 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (7.4ms)[0m [1mROLLBACK[0m
+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 (20.0ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (1.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 03:03:46 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$6b90GH8WkQsWLnF8tetlFea08cbxwah49v6LNp7vs926nYIl8uK66"], ["updated_at", Fri, 28 Jun 2013 03:03:46 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [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[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 (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", Fri, 28 Jun 2013 03:03:46 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:03:46 UTC +00:00]]
- [1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.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 03:03:46 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:46 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test3"
- [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 (2.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (1.8ms)[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 (3.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (32.5ms)[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 (2.0ms)[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 (2.4ms)[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-27 22:03:46 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (6.3ms)[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 (16.0ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.9ms)[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.2ms)[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", Fri, 28 Jun 2013 03:03:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$bQ3psXzU0bNp5WtkZaPQruoU/qm92hlKWPn508ZFeBCvyKKaeob0S"], ["updated_at", Fri, 28 Jun 2013 03:03:46 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.4ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 28 Jun 2013 03:03:47 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:03:47 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.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 03:03:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:47 UTC +00:00], ["user_id", 1]]
+ [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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.2ms)[0m [1mCREATE SCHEMA "test4"[0m
- [1m[35m (9.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 (3.1ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (4.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (4.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 (8.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (21.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (14.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.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (2.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 (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[36m (0.8ms)[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 03:03:47 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$2zwo58n4Tr.ePsHCT4CS1O/kNv/XR6Rsu.8COwzMq7Imt.AerTEGq"], ["updated_at", Fri, 28 Jun 2013 03:03:47 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.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 03:03:47 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:03:47 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_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 03:03:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:47 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 22:03:47 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:03:47 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (10.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.7ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (1.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 (1.3ms)[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 03:03:47 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$dAPw9s8wyv0.ieUtYexIk.vCSQ9o3MrYu5JO/qY4.oEuGurZBmcsW"], ["updated_at", Fri, 28 Jun 2013 03:03:47 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 (8.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 03:03:47 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:03:47 UTC +00:00]]
- [1m[35m (1.6ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[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", Fri, 28 Jun 2013 03:03:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:03:47 UTC +00:00], ["user_id", 1]]
- [1m[36m (10.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (10.7ms)[0m CREATE SCHEMA "test6"
- [1m[36m (24.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 (20.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 (3.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 (3.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (19.1ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (16.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.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.1ms)[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 (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:03:47 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:03:47 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (5.5ms)[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.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.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
-Connecting to database specified by database.yml
- [1m[36m (1.3ms)[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 (12.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.9ms)[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 (1.0ms)[0m [1mBEGIN[0m
- [1m[35m (0.6ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (10.7ms)[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 03:05:33 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$sXQWpHnIycPSYufzQpVwXexL5dfcuiVGMOYatdKQSFvXtVJ9kOUwK"], ["updated_at", Fri, 28 Jun 2013 03:05:33 UTC +00:00]]
- [1m[35m (3.2ms)[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" = '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", Fri, 28 Jun 2013 03:05:33 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:05:33 UTC +00:00]]
- [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (3.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", Fri, 28 Jun 2013 03:05:33 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:33 UTC +00:00], ["user_id", 1]]
+ [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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (15.6ms)[0m CREATE SCHEMA "test1"
- [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 (7.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (17.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (19.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 (5.1ms)[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 (34.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 (23.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[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[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.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
+ [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 22:05:34 -0500
+Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56: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 6ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:05:34 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (11.6ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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 (42.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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.2ms)[0m BEGIN
- [1m[36m (1.7ms)[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", Fri, 28 Jun 2013 03:05:34 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$IR4gdHapG/yIxY2Tshhu8uQn2PVYw2WnujbAmMpKAxuYhVrYNKrZy"], ["updated_at", Fri, 28 Jun 2013 03:05:34 UTC +00:00]]
- [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.9ms)[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 (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 03:05:34 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:05:34 UTC +00:00]]
- [1m[36m (0.9ms)[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 03:05:34 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:34 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 (4.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.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (5.0ms)[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 (15.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (5.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (7.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.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.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (1.9ms)[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-27 22:05:34 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (6.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.3ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.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[36m (0.4ms)[0m [1mBEGIN[0m
- [1m[35m (6.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (2.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 03:05:34 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$jPjVonyHv2.saStzOQpGBeOZolcGMd2bwPORMCjyE94WUvRqbf4Da"], ["updated_at", Fri, 28 Jun 2013 03:05:34 UTC +00:00]]
- [1m[35m (1.6ms)[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 (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 03:05:34 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:05: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.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", Fri, 28 Jun 2013 03:05:34 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:34 UTC +00:00], ["user_id", 1]]
- [1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m CREATE SCHEMA "test3"
- [1m[36m (5.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 (4.6ms)[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 (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 (7.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (6.3ms)[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 (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.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.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.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[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 03:05:35 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$kEjapEbObTq.d243YBm6Gu8fUqo95WZj4m.Mm5itxAIuB0y8yrDp6"], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (8.4ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 28 Jun 2013 03:05:35 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:05: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 (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", 2], ["created_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:35 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-27 22:05: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-27 22:05:35 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (3.4ms)[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 (23.4ms)[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.1ms)[0m BEGIN
- [1m[36m (16.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (15.2ms)[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 03:05:35 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$s/NsiVfaFU7Fm0dsItbovOBsSHnehD4WTt79Un2BbjAqEyvT2Zf/m"], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00]]
- [1m[36m (11.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (11.3ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (14.1ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
- [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", nil], ["created_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00]]
- [1m[36m (4.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[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 03:05:35 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:35 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 (7.0ms)[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 (3.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 (11.5ms)[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.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 (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (0.8ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.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-27 22:05: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.5ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:05:35 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[36m (8.6ms)[0m [1mROLLBACK[0m
- [1m[35m (0.9ms)[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 (40.8ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56: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 (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
[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 03:05:35 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Gd0NESWnLAO6cm6ge2ZqsOwa/Ic2UjPGSaloePu7wwoQBA2ONTJTa"], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00]]
- [1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.5ms)[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" = '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", Fri, 28 Jun 2013 03:05:35 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00]]
+ [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[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_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 03:05:35 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:05:35 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m CREATE SCHEMA "test6"
+ [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 (1.2ms)[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.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 (7.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 (5.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 (4.3ms)[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 (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[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[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[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:05:35 -0500
+Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:02 -0500
Processing by Cadenero::V1::Account::DashboardController#index as HTML
Parameters: {"default"=>:json}
env['warden'].authenticated?(:user): false
Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:05:35 -0500
-Error occurred while parsing request parameters.
-Contents:
-
-
- [1m[35m (3.9ms)[0m ROLLBACK
- [1m[36m (1.1ms)[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.3ms)[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
-Connecting to database specified by database.yml
- [1m[36m (1.1ms)[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.7ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (18.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 (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (1.8ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (18.7ms)[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 03:09:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$UzyCmvCVOjJ7xUThD3.koOoXMUwnrGcD6.l4JtJ94zIL7C8LNtMuy"], ["updated_at", Fri, 28 Jun 2013 03:09:27 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (7.0ms)[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 (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", Fri, 28 Jun 2013 03:09:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:09:27 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.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", Fri, 28 Jun 2013 03:09:27 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:27 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m CREATE SCHEMA "test1"
- [1m[36m (8.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.5ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (8.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (17.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.8ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (5.1ms)[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.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.8ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.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.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:09: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:09:27 -0500
+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
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"}
-valid? subdomain: ["test1"]
-Completed 500 Internal Server Error in 1ms
- [1m[35m (31.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 (28.2ms)[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 (3.7ms)[0m BEGIN
- [1m[36m (2.4ms)[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 03:09:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$bps0utogzruHWlkhN24pz.egejB2opg6IeWnV4TuMN6dsW9zC7Vda"], ["updated_at", Fri, 28 Jun 2013 03:09:27 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[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 (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 03:09:27 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:09:27 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.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", Fri, 28 Jun 2013 03:09:27 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:27 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.4ms)[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 (3.1ms)[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 (1.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (55.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 (13.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (12.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.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.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:09:27 -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"}
-valid? subdomain: ["test2"]
-Completed 500 Internal Server Error in 1ms
+ [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[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 (4.6ms)[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 (1.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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.2ms)[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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$eDY/q1FeINCBmQS1oDmKm.Rn.VfH14ePS/RPHqj0g1SzktcTZAQqC"], ["updated_at", Fri, 28 Jun 2013 03:09: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.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1
- [1m[36mSQL (10.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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:09: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 (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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[0m CREATE SCHEMA "test3"
- [1m[36m (12.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 (1.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (29.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 (7.8ms)[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 (8.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 (4.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.8ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (5.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 (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 03:09:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Bcwph2y5ZThXRQ.1gUImnuDbla7vxYMECNPNiOgKFlXyq.ZGewsEC"], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.4ms)[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" = 'test4' LIMIT 1
- [1m[36mSQL (8.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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (4.5ms)[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", 2], ["created_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:28 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-27 22:09: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.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:09:28 -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"}
-valid? subdomain: ["test3"]
-Completed 500 Internal Server Error in 1ms
- [1m[35m (7.0ms)[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 (28.0ms)[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 (1.2ms)[0m BEGIN
- [1m[36m (9.5ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.7ms)[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 03:09:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ky0ZldWOLc/U8mV4Van.6uyAvyRjLDSkopMPFUZGbsYCgKL060Y/C"], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00]]
- [1m[36m (2.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.5ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (2.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
- [1m[35mSQL (14.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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00]]
- [1m[36m (3.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.6ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (3.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", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:28 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.6ms)[0m [1mCREATE SCHEMA "test5"[0m
- [1m[35m (13.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 (19.0ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (12.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (20.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.6ms)[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 (17.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.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (5.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.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (4.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:09: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-27 22:09: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"}
-valid? subdomain: ["test5"]
-Completed 500 Internal Server Error in 1ms
- [1m[36m (4.0ms)[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 (17.9ms)[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[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 (0.1ms)[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", Fri, 28 Jun 2013 03:09:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$GMX2um5L9TwL9ES.41g5buNBIcWoI0nV5grnyLAo1LfW1AdLUQU2y"], ["updated_at", Fri, 28 Jun 2013 03:09:29 UTC +00:00]]
- [1m[35m (0.7ms)[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" = 'test6' 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 03:09:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:09:29 UTC +00:00]]
- [1m[35m (3.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.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 03:09:29 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:09:29 UTC +00:00], ["user_id", 1]]
- [1m[36m (3.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (3.6ms)[0m CREATE SCHEMA "test6"
- [1m[36m (8.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 (12.3ms)[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 (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 (6.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (3.3ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (20.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 (6.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 (1.7ms)[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 22:09: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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:09:29 -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"}
-valid? subdomain: ["test6"]
-Completed 500 Internal Server Error in 1ms
- [1m[35m (3.7ms)[0m ROLLBACK
- [1m[36m (0.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 (16.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
-Connecting to database specified by database.yml
- [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 (2.5ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (13.9ms)[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[36m (0.8ms)[0m [1mBEGIN[0m
- [1m[35m (10.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (16.4ms)[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 03:12:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0ImmJLc6Ehbn9qI5x0LFo.ii9G4BE9in7FaeD3Hmyydld/1Sc6bTy"], ["updated_at", Fri, 28 Jun 2013 03:12:24 UTC +00:00]]
+ [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 (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT 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" = 'test1' 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", Fri, 28 Jun 2013 03:12:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:12:24 UTC +00:00]]
- [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.3ms)[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", Fri, 28 Jun 2013 03:12:24 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:24 UTC +00:00], ["user_id", 1]]
- [1m[36m (1.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m CREATE SCHEMA "test1"
- [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 (4.7ms)[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.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[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[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 (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 (1.2ms)[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.7ms)[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[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 (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:12:24 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:12:24 -0500
+Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:03 -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"}
-valid? subdomain: ["test1"]
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-subdomain: ["test1"]
- [1m[35mCadenero::V1::Account Load (6.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (2.1ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5p1Vf59gNqZ4sgZx2raF' LIMIT 1[0m
-account: {"account":{"authentication_token":"5p1Vf59gNqZ4sgZx2raF","created_at":"2013-06-28T03:12:24Z","id":1,"name":"Test Account #1","owner_id":1,"subdomain":"test1","updated_at":"2013-06-28T03:12:24Z"}}
- [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" = 'foo@example.com' LIMIT 1
-user: null
-Completed 422 Unprocessable Entity in 32ms (Views: 0.3ms | ActiveRecord: 10.2ms)
- [1m[36mCadenero::V1::Account Load (0.9ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
- [1m[35m (5.3ms)[0m ROLLBACK
- [1m[36m (1.5ms)[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 (22.0ms)[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 (3.4ms)[0m BEGIN
- [1m[36m (2.7ms)[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 03:12:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$crIc3sdqJDEmBi8T17VW8ePL57ncOAV1NWuJ7gXVMEQmDTaL8kw8q"], ["updated_at", Fri, 28 Jun 2013 03:12:25 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 (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 03:12:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:12:25 UTC +00:00]]
- [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (1.2ms)[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", Fri, 28 Jun 2013 03:12:25 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:25 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (11.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.4ms)[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 (12.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 (4.1ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (6.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (6.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 (10.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (8.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 (2.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/sessions" for 127.0.0.1 at 2013-06-27 22:12:25 -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"}
-valid? subdomain: ["test2"]
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-subdomain: ["test2"]
- [1m[36mCadenero::V1::Account Load (2.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'sGpRqh4upSaN3GutscNk' LIMIT 1
-account: {"account":{"authentication_token":"sGpRqh4upSaN3GutscNk","created_at":"2013-06-28T03:12:25Z","id":1,"name":"Test Account #2","owner_id":1,"subdomain":"test2","updated_at":"2013-06-28T03:12:25Z"}}
- [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" = 'user2@example.com' LIMIT 1[0m
-user: {"user":{"created_at":"2013-06-28T03:12:25Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$crIc3sdqJDEmBi8T17VW8ePL57ncOAV1NWuJ7gXVMEQmDTaL8kw8q","updated_at":"2013-06-28T03:12:25Z"}}
-authenticate user! not null: {"user":{"created_at":"2013-06-28T03:12:25Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$crIc3sdqJDEmBi8T17VW8ePL57ncOAV1NWuJ7gXVMEQmDTaL8kw8q","updated_at":"2013-06-28T03:12:25Z"}}
- [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::Member Load (5.7ms)[0m [1mSELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_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 182ms (Views: 27.7ms | ActiveRecord: 12.7ms)
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1[0m
-Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:12:25 -0500
+ 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
Processing by Cadenero::V1::Account::SessionsController#delete as HTML
Parameters: {"id"=>"1", "default"=>:json}
- [1m[35mCadenero::User Load (0.6ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
+ [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-28T03:12:25Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$crIc3sdqJDEmBi8T17VW8ePL57ncOAV1NWuJ7gXVMEQmDTaL8kw8q","updated_at":"2013-06-28T03:12:25Z"}}
+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"}}
[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:0x007feabd16c4c0>
+current_user.id: #<Cadenero::User:0x007ff7117ad860>
user_signed_in?: true
-Completed 201 Created in 14ms (Views: 0.2ms | ActiveRecord: 0.6ms)
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:12:25 -0500
+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
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 (8.6ms)[0m ROLLBACK
- [1m[36m (0.3ms)[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 (18.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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.6ms)[0m BEGIN
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.3ms)[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 03:12:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$CA7p6bTKYt45n82wCCdoYugjopi82wZ6LbPDVfIdAwzhoTeCqhJ6q"], ["updated_at", Fri, 28 Jun 2013 03:12:25 UTC +00:00]]
- [1m[36m (5.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" = 'test3' 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", Fri, 28 Jun 2013 03:12:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:12:25 UTC +00:00]]
+ [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 (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 03:12:25 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:25 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test3"[0m
- [1m[35m (12.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 (7.9ms)[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 (3.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.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (13.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.8ms)[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 (8.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (1.1ms)[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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$vrbDTlIAF.QdLidJ4YqnruhRgZaN7I8SEzo9UPNmfIPA8.U0HvRUS"], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00]]
+ [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[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.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 03:12:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [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.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", 2], ["created_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["user_id", 2]]
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:12:26 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:12:26 -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"}
-valid? subdomain: ["test3"]
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"", "password_confirmation"=>""}}
-subdomain: ["test3"]
- [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::V1::Account Load (0.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cygFoykz2Q9xGs2eqCF7' LIMIT 1
-account: {"account":{"authentication_token":"cygFoykz2Q9xGs2eqCF7","created_at":"2013-06-28T03:12:25Z","id":1,"name":"Test Account #3","owner_id":1,"subdomain":"test3","updated_at":"2013-06-28T03:12:25Z"}}
- [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
-user: null
-Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.4ms)
- [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.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 (18.1ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (2.1ms)[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 (1.8ms)[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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$roxRcTWOS9mxgemHy8Ckn.z/EL3gUqf4sr6SrBlTuQZmgMXajpTwK"], ["updated_at", Fri, 28 Jun 2013 03:12:26 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", 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
- [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 (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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:12: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 (17.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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["user_id", 1]]
- [1m[36m (16.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[0m CREATE SCHEMA "test5"
- [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 (0.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (0.8ms)[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 (9.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (6.0ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (5.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 (2.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.3ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:12:26 -0500
+Started GET "/v1" for 127.0.0.1 at 2013-06-27 23:56:04 -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 22:12:26 -0500
+Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 23:56:04 -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"}
-valid? subdomain: ["test5"]
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-subdomain: ["test5"]
- [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::V1::Account Load (0.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D73qsSCpDBDXwrezkUgV' LIMIT 1[0m
-account: {"account":{"authentication_token":"D73qsSCpDBDXwrezkUgV","created_at":"2013-06-28T03:12:26Z","id":1,"name":"Test Account #5","owner_id":1,"subdomain":"test5","updated_at":"2013-06-28T03:12:26Z"}}
- [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" = 'user@example.com' LIMIT 1
-user: null
-Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 1.6ms)
- [1m[36mCadenero::V1::Account Load (1.5ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1[0m
- [1m[35m (11.4ms)[0m ROLLBACK
+ 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.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 (18.9ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (1.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
- [1m[35m (11.2ms)[0m BEGIN
- [1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (6.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 03:12:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$6XGATzh7QbD39D90pQVNxeRFlfpPaM2JWSWRb5Hx1SOjR2fWNGiYK"], ["updated_at", Fri, 28 Jun 2013 03:12:26 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.4ms)[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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00]]
- [1m[36m (2.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (2.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", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:12:26 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.4ms)[0m [1mCREATE SCHEMA "test6"[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 (2.9ms)[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 (25.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 (23.1ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (13.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 (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (8.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.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-27 22:12:26 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:12:26 -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"}
-valid? subdomain: ["test6"]
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"password"}}
-subdomain: ["test6"]
- [1m[36mCadenero::V1::Account Load (2.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1[0m
- [1m[35mCadenero::V1::Account Load (10.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cT33ffwHnFx5PqiBKD8u' LIMIT 1
-account: {"account":{"authentication_token":"cT33ffwHnFx5PqiBKD8u","created_at":"2013-06-28T03:12:26Z","id":1,"name":"Test Account #6","owner_id":1,"subdomain":"test6","updated_at":"2013-06-28T03:12:26Z"}}
- [1m[36mCadenero::User Load (3.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" = 'user6@example.com' LIMIT 1[0m
-user: {"user":{"created_at":"2013-06-28T03:12:26Z","email":"user6@example.com","id":1,"password_digest":"$2a$10$6XGATzh7QbD39D90pQVNxeRFlfpPaM2JWSWRb5Hx1SOjR2fWNGiYK","updated_at":"2013-06-28T03:12:26Z"}}
-authenticate user! not null: {"user":{"created_at":"2013-06-28T03:12:26Z","email":"user6@example.com","id":1,"password_digest":"$2a$10$6XGATzh7QbD39D90pQVNxeRFlfpPaM2JWSWRb5Hx1SOjR2fWNGiYK","updated_at":"2013-06-28T03:12:26Z"}}
- [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 (0.4ms)[0m [1mSELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_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 136ms (Views: 5.7ms | ActiveRecord: 17.2ms)
- [1m[36mCadenero::V1::Account Load (0.5ms)[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-27 22:12:27 -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 (5.9ms)[0m [1mROLLBACK[0m
- [1m[35m (1.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 (48.2ms)[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
-Connecting to database specified by database.yml
- [1m[36m (7.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 (3.0ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (17.5ms)[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 (0.3ms)[0m [1mBEGIN[0m
- [1m[35m (2.2ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (16.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 03:19:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$AHhW57Ag/7GkhnTfwNPP2ugUvzPFCw4JpYCfMX8Ftrcs00nVBpJtu"], ["updated_at", Fri, 28 Jun 2013 03:19:54 UTC +00:00]]
- [1m[35m (15.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (5.0ms)[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.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 03:19:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:19: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.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", Fri, 28 Jun 2013 03:19:54 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:54 UTC +00:00], ["user_id", 1]]
+ [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[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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test1"
- [1m[36m (20.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.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (8.5ms)[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 (2.7ms)[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 (4.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 (1.3ms)[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 (1.0ms)[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 GET "/v1" for 127.0.0.1 at 2013-06-27 22:19: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 8ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:19:54 -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"}
-valid? subdomain: ["test1"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-Completed 500 Internal Server Error in 1ms
- [1m[35m (10.2ms)[0m ROLLBACK
- [1m[36m (0.5ms)[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 (22.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (0.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 (0.2ms)[0m BEGIN
- [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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YsEKAVhhI.2c8ToKlc7MlOwbGilDRmm2I3DxHqmGofz71sUYjhzE2"], ["updated_at", Fri, 28 Jun 2013 03:19:55 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" = 'test2' 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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00]]
+ [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[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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (4.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 (2.5ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (3.4ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (23.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 (2.0ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (7.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.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 (2.9ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (2.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612061604')[0m
- [1m[35m (5.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:19: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-27 22:19:55 -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"}
-valid? subdomain: ["test2"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-Completed 500 Internal Server Error in 1ms
- [1m[36m (10.0ms)[0m [1mROLLBACK[0m
- [1m[35m (1.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 (17.0ms)[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 (0.4ms)[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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$hVbGqYnjV/YovhvrkJI/1eSVpwVd8Mb7h9644B6.AaESRynglxjBC"], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00]]
+ [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[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 (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 03:19:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00]]
- [1m[35m (5.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (5.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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["user_id", 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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test3"
- [1m[36m (4.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 (6.7ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (3.2ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (30.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 (4.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (19.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (25.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 (29.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.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.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 22:19: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-27 22:19: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"}
-valid? subdomain: ["test3"]
-json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-Completed 500 Internal Server Error in 1ms
- [1m[35m (6.6ms)[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.3ms)[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
- [1m[35m (0.5ms)[0m BEGIN
- [1m[36m (12.5ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.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 03:19:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$3E/XBlrPeTFeQI4F6.FWIOJKnpBSJT0K/Qqtu/mIyTGJ00yfdU4fG"], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00]]
- [1m[36m (6.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (12.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (30.0ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1[0m
- [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", nil], ["created_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00]]
- [1m[36m (8.7ms)[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", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:55 UTC +00:00], ["user_id", 1]]
- [1m[35m (12.5ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.6ms)[0m [1mCREATE SCHEMA "test4"[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 (2.4ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (4.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 (3.5ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[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 (1.6ms)[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 (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[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-27 22:19:56 -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"}
-valid? subdomain: ["test4"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user4@example.com", "password"=>"password"}}
-Completed 500 Internal Server Error in 1ms
- [1m[36m (10.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 (30.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.9ms)[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 (8.3ms)[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", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$b4XzChbhG1af2UHeIjyJHupGRS1EmNbPkyFNkXQXcRlATRt0DCWie"], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00]]
- [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.2ms)[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 (2.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", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00]]
+ [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[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", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["user_id", 1]]
- [1m[36m (9.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.4ms)[0m CREATE SCHEMA "test5"
- [1m[36m (6.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 (4.3ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (3.3ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")[0m
- [1m[35m (3.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 (22.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 (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 (5.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.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 (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[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", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$4fOU3/5jQeVLNExxXaq5pe2pPKKpUGKMWh0GJKxxA7TDADQufqu1a"], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00]]
+ [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[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 (0.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 03:19:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00]]
- [1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (3.8ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (8.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", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:19:56 UTC +00:00], ["user_id", 2]]
- [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:19:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:19:56 -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"}
-valid? subdomain: ["test5"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}}
-Completed 500 Internal Server Error in 1ms
- [1m[35m (7.8ms)[0m ROLLBACK
- [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 (20.3ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (3.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 (1.3ms)[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.8ms)[0m select table_name from information_schema.views where table_schema = 'cadenero_test'
- [1m[36m (27.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 (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (29.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 03:20:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$7vbmeQdjd8kwl00OEZk3GeIcZGAcR5FRRdfO0LzWiSLhph01/teg6"], ["updated_at", Fri, 28 Jun 2013 03:20:59 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.7ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 28 Jun 2013 03:20:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:20:59 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", Fri, 28 Jun 2013 03:20:59 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:20:59 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test1"
- [1m[36m (11.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 (1.6ms)[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 (40.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 (11.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (7.2ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (17.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 (10.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (8.1ms)[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.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 GET "/v1" for 127.0.0.1 at 2013-06-27 22:21: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 7ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:00 -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"}
-Completed 500 Internal Server Error in 1ms
- [1m[35m (13.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 (36.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (3.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.7ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.3ms)[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 03:21:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$u.VC4tLmhLn1zEsrS./4Geq/hKo1B3bPQGplF3rn7Tm4rCdbdkhTi"], ["updated_at", Fri, 28 Jun 2013 03:21:00 UTC +00:00]]
- [1m[36m (6.6ms)[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" = 'test2' 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 03:21:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:21:00 UTC +00:00]]
- [1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (3.0ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (2.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", Fri, 28 Jun 2013 03:21:00 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:00 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 (11.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.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (5.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (12.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.0ms)[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 (12.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.4ms)[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')
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:21:00 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:00 -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"}
-Completed 500 Internal Server Error in 1ms
- [1m[36m (7.0ms)[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 (20.0ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (4.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 (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (23.9ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (37.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 03:21:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$jiUT5vbmsB8y7IY944TN4u5Oycv76CCPYb2mp1pgezRm1yCGLb6RO"], ["updated_at", Fri, 28 Jun 2013 03:21:00 UTC +00:00]]
- [1m[35m (22.5ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (3.6ms)[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" = 'test3' LIMIT 1
- [1m[36mSQL (4.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 03:21:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:21:00 UTC +00:00]]
- [1m[35m (3.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.0ms)[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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["user_id", 1]]
- [1m[36m (3.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test3"
- [1m[36m (14.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 (28.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 (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.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (3.4ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (6.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 (1.8ms)[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.6ms)[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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$lMnKcizuxjJborzQhoBffer1MLUtkQ5c3lKXU5p4.HaRu9BCsDHPy"], ["updated_at", Fri, 28 Jun 2013 03:21: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 (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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:21: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.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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21: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-27 22:21: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 22:21:01 -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"}
-Completed 500 Internal Server Error in 97ms
- [1m[35m (9.5ms)[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 (132.6ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (2.1ms)[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 (2.5ms)[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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$VP/YEcc24ySIUw5NF9tCNu2m.nb5eWLeTfg.O80WsVNhN//gsPG62"], ["updated_at", Fri, 28 Jun 2013 03:21:01 UTC +00:00]]
- [1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (2.6ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1[0m
- [1m[35mSQL (3.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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:21:01 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", Fri, 28 Jun 2013 03:21:01 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:01 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.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 (0.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 (3.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.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (7.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (26.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 (6.2ms)[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 [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 (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 (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-27 22:21: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 22:21: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"}
-Completed 500 Internal Server Error in 1ms
- [1m[36m (6.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 (44.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (10.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[36m (0.2ms)[0m [1mBEGIN[0m
- [1m[35m (1.6ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (1.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 03:21:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$BipES77S342LhEnSffc4veb2pmcTO8z15G2LqeQcL3ArsnlSn1gLq"], ["updated_at", Fri, 28 Jun 2013 03:21:02 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (4.9ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (4.5ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1
- [1m[36mSQL (7.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 03:21:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:21: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.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 03:21:02 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:02 UTC +00:00], ["user_id", 1]]
- [1m[36m (6.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (34.9ms)[0m CREATE SCHEMA "test6"
- [1m[36m (4.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.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (4.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 (7.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 (17.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 (5.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (6.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (2.1ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612073709')[0m
- [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (4.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21: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"}
-Completed 500 Internal Server Error in 1ms
- [1m[35m (5.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 (95.8ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
+ [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
-Connecting to database specified by database.yml
- [1m[36m (0.8ms)[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.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
+ [1m[35m (0.7ms)[0m BEGIN
+Processing by Cadenero::V1::AccountsController#create as HTML
+ 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
+ [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[36m (0.1ms)[0m [1mBEGIN[0m
- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (12.6ms)[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 03:21:46 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$V6Qu8qVUzXpo804iMNG3su0kh9kvySRxO6tahzYJSAu6Zcfer9emC"], ["updated_at", Fri, 28 Jun 2013 03:21:46 UTC +00:00]]
- [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.6ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mCadenero::V1::Account Exists (2.8ms)[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", Fri, 28 Jun 2013 03:21:46 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:21:46 UTC +00:00]]
+ [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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (15.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 03:21:46 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:46 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test1"
- [1m[36m (11.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 (2.8ms)[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 (0.9ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (4.5ms)[0m CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")
- [1m[36m (8.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 (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (2.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 POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:47 -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 (1.3ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (1.0ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aqJMwKWJaxJAjYzvq4KF' LIMIT 1[0m
- [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 AND "public"."cadenero_users"."email" = 'user1@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::Member Load (0.4ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1
- [1m[36mCadenero::V1::Account Load (4.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 221ms (Views: 24.2ms | ActiveRecord: 11.2ms)
- [1m[35mCadenero::V1::Account Load (3.7ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1
-Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:47 -0500
-Processing by Cadenero::V1::Account::SessionsController#delete as HTML
- Parameters: {"id"=>"1", "default"=>:json}
- [1m[36mCadenero::User Load (0.3ms)[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-28T03:21:46Z","email":"user1@example.com","id":1,"password_digest":"$2a$10$V6Qu8qVUzXpo804iMNG3su0kh9kvySRxO6tahzYJSAu6Zcfer9emC","updated_at":"2013-06-28T03:21:46Z"}}
- [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:0x007f8b28c81af8>
-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 22:21:47 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
- [1m[36m (7.1ms)[0m [1mROLLBACK[0m
- [1m[35m (0.6ms)[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 (20.9ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.9ms)[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.4ms)[0m [1mBEGIN[0m
- [1m[35m (2.9ms)[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 03:21:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$ygoKto5H5i5f9k4DICqovuQ2LvRQX5vhTKIzfZqEC8M0r.A1dktCe"], ["updated_at", Fri, 28 Jun 2013 03:21:47 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 (0.4ms)[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", Fri, 28 Jun 2013 03:21:47 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:21:47 UTC +00:00]]
- [1m[35m (1.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (21.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", Fri, 28 Jun 2013 03:21:47 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:47 UTC +00:00], ["user_id", 1]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.3ms)[0m CREATE SCHEMA "test2"
- [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 (1.4ms)[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.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.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 (7.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.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.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')
- [1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
- [1m[35m (0.5ms)[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 03:21:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$x6dw54LZj9RFt1o.0XMGv.4gMFC/l.aPwx4DY6WF4GZXWdDaj2hr2"], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00]]
+ [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[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.3ms)[0m SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.8ms)[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", 2], ["created_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["user_id", 2]]
+ [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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:21:48 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:48 -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 (5.4ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1
- [1m[36mCadenero::V1::Account Load (0.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UfMBPCXxXXjjgwoBdbhF' 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" = 'user3@example.com' LIMIT 1
-Completed 422 Unprocessable Entity in 14ms (Views: 0.3ms | ActiveRecord: 6.3ms)
- [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 (5.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 (38.5ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (8.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.1ms)[0m BEGIN
- [1m[36m (9.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [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", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$YSYfDK0vee9GqW2SHyt7HOhrooq1.NUJNZ.UO7UHcF.8UgipY7SuC"], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00]]
- [1m[36m (6.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.2ms)[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" = 'test4' LIMIT 1[0m
- [1m[35mSQL (4.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 03:21:48 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.6ms)[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", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (1.7ms)[0m [1mCREATE SCHEMA "test4"[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 (0.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (8.1ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (5.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 (9.3ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (3.0ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (19.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.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 (2.9ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.9ms)[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-27 22:21:48 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:48 -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.6ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = '6S65sWE1wKazQ8h6QyS2' 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" = 'user@example.com' LIMIT 1[0m
-Completed 422 Unprocessable Entity in 10ms (Views: 0.3ms | ActiveRecord: 1.5ms)
- [1m[35mCadenero::V1::Account Load (6.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
- [1m[36m (5.9ms)[0m [1mROLLBACK[0m
- [1m[35m (1.1ms)[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 (39.7ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (25.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[36m (15.5ms)[0m [1mBEGIN[0m
- [1m[35m (10.6ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (13.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 03:21:48 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$TctMHpKw/FGGEsPyqu2dGeFfLLYOOZqm6Ox85RGnRYm68EYS0Myny"], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00]]
- [1m[35m (14.8ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (2.1ms)[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" = 'test5' LIMIT 1
- [1m[36mSQL (3.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 03:21:48 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:21:48 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 (7.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", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:48 UTC +00:00], ["user_id", 1]]
- [1m[36m (32.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.8ms)[0m CREATE SCHEMA "test5"
- [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 (16.2ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
+ [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[36m (2.6ms)[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.5ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (3.1ms)[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 (1.5ms)[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 (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.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.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[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 22:21:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:49 -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[35mCadenero::V1::Account Load (0.9ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1
- [1m[36mCadenero::V1::Account Load (1.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AzHcrs7NYKPesVeJTjyL' LIMIT 1[0m
- [1m[35mCadenero::User Load (5.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
- [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::Member Load (0.3ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1
- [1m[36mCadenero::V1::Account Load (1.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" = 1[0m
-Completed 201 Created in 148ms (Views: 5.2ms | ActiveRecord: 9.5ms)
- [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 GET "/v1" for 127.0.0.1 at 2013-06-27 22:21:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): true
- [1m[36mCadenero::User Load (2.9ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
-Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 2.9ms)
- [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 (54.8ms)[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.1ms)[0m BEGIN
- [1m[36m (1.7ms)[0m [1mSAVEPOINT active_record_1[0m
- [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", Fri, 28 Jun 2013 03:21:49 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$BDMFgM1UnTXG9RvtFkfO9e7NShIIu/oMSNMWlZ.MaGc5sJ9bW4zc2"], ["updated_at", Fri, 28 Jun 2013 03:21:49 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [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.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
+ 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[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[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" = 'test6' 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 03:21:49 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:21:49 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 (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", Fri, 28 Jun 2013 03:21:49 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:21:49 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.2ms)[0m [1mCREATE SCHEMA "test6"[0m
- [1m[35m (5.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.6ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (1.9ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (6.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 (12.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (3.4ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (6.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.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
- [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (1.7ms)[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-27 22:21:49 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:21:49 -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::V1::Account Load (0.2ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MkkAKANDFJLstgMpENkq' 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" = 'foo@example.com' LIMIT 1[0m
-Completed 422 Unprocessable Entity in 14ms (Views: 2.4ms | ActiveRecord: 2.3ms)
- [1m[35mCadenero::V1::Account Load (0.5ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1
- [1m[36m (7.2ms)[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 (34.9ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
+ [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
+ 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 (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
-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 (14.2ms)[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 (6.1ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (12.7ms)[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 03:39:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$PetwqiBwRk8lp2tpZ0zTPeWiMMl.G0OD9d3EiDHDOcy8gb/nGMkLC"], ["updated_at", Fri, 28 Jun 2013 03:39:55 UTC +00:00]]
- [1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [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
+ 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[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[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" = 'test1' LIMIT 1
- [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", Fri, 28 Jun 2013 03:39:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 28 Jun 2013 03:39:55 UTC +00:00]]
- [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[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 03:39:55 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:55 UTC +00:00], ["user_id", 1]]
+ [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 (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.7ms)[0m CREATE SCHEMA "test1"
- [1m[36m (21.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.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 (9.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.0ms)[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 (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 (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
- [1m[36m (4.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.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130612064652')[0m
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:39:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 17ms (Views: 0.4ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:39:56 -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"}
-valid? subdomain: ["test1"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}}
-params.empty?: false
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}}
-params.empty?: false
-subdomain: ["test1"]
- [1m[35mCadenero::V1::Account Load (8.0ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1
- [1m[36mCadenero::V1::Account Load (3.2ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MyEcEhy7kuqvp8zV9VJ4' LIMIT 1[0m
-account: {"account":{"authentication_token":"MyEcEhy7kuqvp8zV9VJ4","created_at":"2013-06-28T03:39:55Z","id":1,"name":"Test Account #1","owner_id":1,"subdomain":"test1","updated_at":"2013-06-28T03:39:55Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}}
-params.empty?: false
- [1m[35mCadenero::User Load (1.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 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1
-user: {"user":{"created_at":"2013-06-28T03:39:55Z","email":"user1@example.com","id":1,"password_digest":"$2a$10$PetwqiBwRk8lp2tpZ0zTPeWiMMl.G0OD9d3EiDHDOcy8gb/nGMkLC","updated_at":"2013-06-28T03:39:55Z"}}
-authenticate user! not null: {"user":{"created_at":"2013-06-28T03:39:55Z","email":"user1@example.com","id":1,"password_digest":"$2a$10$PetwqiBwRk8lp2tpZ0zTPeWiMMl.G0OD9d3EiDHDOcy8gb/nGMkLC","updated_at":"2013-06-28T03:39:55Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user1@example.com", "password"=>"password"}}
-params.empty?: false
- [1m[36mCadenero::User Load (26.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
- [1m[35mCadenero::Member Load (0.5ms)[0m SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1
- [1m[36mCadenero::V1::Account Load (4.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 286ms (Views: 82.2ms | ActiveRecord: 43.5ms)
- [1m[35mCadenero::V1::Account Load (1.1ms)[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-27 22:39:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): true
- [1m[36mCadenero::User Load (1.4ms)[0m [1mSELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1[0m
-Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 1.4ms)
- [1m[35m (11.9ms)[0m ROLLBACK
- [1m[36m (0.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 (44.2ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;
- [1m[36m (20.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
- [1m[35m (0.1ms)[0m BEGIN
- [1m[36m (0.6ms)[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", Fri, 28 Jun 2013 03:39:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8jbPLaKPF6SGiXwTVbvBiu9I/Q6G722dW8KmflUpsq6nNaDH51fyW"], ["updated_at", Fri, 28 Jun 2013 03:39:56 UTC +00:00]]
- [1m[36m (12.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (9.5ms)[0m SAVEPOINT active_record_1
- [1m[36mCadenero::V1::Account Exists (12.8ms)[0m [1mSELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 28 Jun 2013 03:39:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 28 Jun 2013 03:39:56 UTC +00:00]]
- [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (2.7ms)[0m SAVEPOINT active_record_1
- [1m[36mSQL (5.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", Fri, 28 Jun 2013 03:39:56 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:56 UTC +00:00], ["user_id", 1]]
- [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.3ms)[0m [1mCREATE SCHEMA "test2"[0m
- [1m[35m (3.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 (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 (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.4ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")[0m
- [1m[35m (6.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.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [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 (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
+ [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 [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-27 22:39:56 -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"}
-valid? subdomain: ["test2"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-params.empty?: false
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-params.empty?: false
-subdomain: ["test2"]
- [1m[36mCadenero::V1::Account Load (1.7ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'STxnZzYsCtEZAK6WgCvU' LIMIT 1
-account: {"account":{"authentication_token":"STxnZzYsCtEZAK6WgCvU","created_at":"2013-06-28T03:39:56Z","id":1,"name":"Test Account #2","owner_id":1,"subdomain":"test2","updated_at":"2013-06-28T03:39:56Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-params.empty?: false
- [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" = 'user2@example.com' LIMIT 1[0m
-user: {"user":{"created_at":"2013-06-28T03:39:56Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$8jbPLaKPF6SGiXwTVbvBiu9I/Q6G722dW8KmflUpsq6nNaDH51fyW","updated_at":"2013-06-28T03:39:56Z"}}
-authenticate user! not null: {"user":{"created_at":"2013-06-28T03:39:56Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$8jbPLaKPF6SGiXwTVbvBiu9I/Q6G722dW8KmflUpsq6nNaDH51fyW","updated_at":"2013-06-28T03:39:56Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user2@example.com", "password"=>"password"}}
-params.empty?: false
- [1m[35mCadenero::User Load (1.3ms)[0m SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1
- [1m[36mCadenero::Member Load (0.8ms)[0m [1mSELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1[0m
- [1m[35mCadenero::V1::Account Load (1.1ms)[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 173ms (Views: 4.6ms | ActiveRecord: 6.5ms)
- [1m[36mCadenero::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1[0m
-Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:39:56 -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-28T03:39:56Z","email":"user2@example.com","id":1,"password_digest":"$2a$10$8jbPLaKPF6SGiXwTVbvBiu9I/Q6G722dW8KmflUpsq6nNaDH51fyW","updated_at":"2013-06-28T03:39:56Z"}}
- [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:0x007fa9dd2a3530>
-user_signed_in?: true
-Completed 201 Created in 11ms (Views: 0.2ms | ActiveRecord: 0.3ms)
-Started GET "/v1" for 127.0.0.1 at 2013-06-27 22:39:56 -0500
-Processing by Cadenero::V1::Account::DashboardController#index as HTML
- Parameters: {"default"=>:json}
-env['warden'].authenticated?(:user): false
-Filter chain halted as :authenticate_user! rendered or redirected
-Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
- [1m[35m (6.4ms)[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 (33.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
- [1m[35m (0.1ms)[0m BEGIN
+ [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[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (2.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 03:39:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$ue.8h0x3EOi/0/GGIxa0reFMIn0rwOlccCz9s/IASaps5dCI4O4VS"], ["updated_at", Fri, 28 Jun 2013 03:39:57 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 (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 03:39:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 28 Jun 2013 03:39:57 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", Fri, 28 Jun 2013 03:39:57 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:57 UTC +00:00], ["user_id", 1]]
- [1m[35m (11.8ms)[0m RELEASE SAVEPOINT active_record_1
- [1m[36m (0.7ms)[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 (5.7ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (15.6ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (5.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.0ms)[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 (7.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.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (2.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.4ms)[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-27 22:39:57 -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.8ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:39:57 -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"}
-valid? subdomain: ["test3"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
-subdomain: ["test3"]
- [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::V1::Account Load (2.8ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VEAikTdchYAPbFJ5bxWu' LIMIT 1
-account: {"account":{"authentication_token":"VEAikTdchYAPbFJ5bxWu","created_at":"2013-06-28T03:39:57Z","id":1,"name":"Test Account #3","owner_id":1,"subdomain":"test3","updated_at":"2013-06-28T03:39:57Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
- [1m[36mCadenero::User Load (9.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" = 'user@example.com' LIMIT 1[0m
-user: null
-Completed 422 Unprocessable Entity in 19ms (Views: 0.4ms | ActiveRecord: 13.1ms)
- [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 (5.5ms)[0m [1mROLLBACK[0m
- [1m[35m (3.1ms)[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.9ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[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[36m (0.9ms)[0m [1mBEGIN[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", Fri, 28 Jun 2013 03:39:57 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$CGoSu4ZKabqpnGTz8BjH5O3MpRjLSSWIsnNQsjK64qHWnRT8gE2XK"], ["updated_at", Fri, 28 Jun 2013 03:39:57 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (30.5ms)[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[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.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 03:39:57 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 28 Jun 2013 03:39:57 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.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", Fri, 28 Jun 2013 03:39:57 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:57 UTC +00:00], ["user_id", 1]]
+ [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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
- [1m[35m (0.1ms)[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.8ms)[0m CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")
- [1m[36m (2.7ms)[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 (1.2ms)[0m [1mCREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")[0m
- [1m[35m (4.3ms)[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.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-27 22:39:57 -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.3ms | ActiveRecord: 0.0ms)
-Started POST "/v1/sessions" for 127.0.0.1 at 2013-06-27 22:39:57 -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"}
-valid? subdomain: ["test4"]
-json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-params.empty?: false
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-params.empty?: false
-subdomain: ["test4"]
- [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::V1::Account Load (0.3ms)[0m [1mSELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'o9Y9SSdgsUQwBwqxshxC' LIMIT 1[0m
-account: {"account":{"authentication_token":"o9Y9SSdgsUQwBwqxshxC","created_at":"2013-06-28T03:39:57Z","id":1,"name":"Test Account #4","owner_id":1,"subdomain":"test4","updated_at":"2013-06-28T03:39:57Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"foo@example.com", "password"=>"password", "password_confirmation"=>"password"}}
-params.empty?: false
- [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" = 'foo@example.com' LIMIT 1
-user: null
-Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 1.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 (11.6ms)[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 (32.3ms)[0m TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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[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", Fri, 28 Jun 2013 03:39:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yAyfJ7i9UY2bYqVWJcYpwOTRqcxcb7toiaOkSFTi7cpckukS9e9iy"], ["updated_at", Fri, 28 Jun 2013 03:39:58 UTC +00:00]]
- [1m[36m (0.8ms)[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 (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 03:39:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 28 Jun 2013 03:39:58 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", Fri, 28 Jun 2013 03:39:58 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:58 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 (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 (8.9ms)[0m [1mCREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")[0m
- [1m[35m (18.0ms)[0m CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")
- [1m[36m (10.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 (2.9ms)[0m CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")
- [1m[36m (1.7ms)[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 (9.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
- [1m[35m (6.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.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')
- [1m[36m (0.7ms)[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[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 03:39:58 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$MqI1unyfe3BAMYzrXs/btO9gj1968tVknWezHeOB/AKPKp8H.SglS"], ["updated_at", Fri, 28 Jun 2013 03:39:58 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" = '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", Fri, 28 Jun 2013 03:39:58 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 28 Jun 2013 03:39:58 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 (4.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", Fri, 28 Jun 2013 03:39:58 UTC +00:00], ["updated_at", Fri, 28 Jun 2013 03:39:58 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 22:39:58 -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 22:39:58 -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"}
-valid? subdomain: ["test5"]
-json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
-valid? json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
-subdomain: ["test5"]
- [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::V1::Account Load (1.6ms)[0m SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2tPABqvdxsuLjPwNRnsn' LIMIT 1
-account: {"account":{"authentication_token":"2tPABqvdxsuLjPwNRnsn","created_at":"2013-06-28T03:39:58Z","id":1,"name":"Test Account #5","owner_id":1,"subdomain":"test5","updated_at":"2013-06-28T03:39:58Z"}}
-json_params: {"format"=>"json", "user"=>{"email"=>"user6@example.com", "password"=>"", "password_confirmation"=>""}}
-params.empty?: false
- [1m[36mCadenero::User Load (3.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
-user: null
-Completed 422 Unprocessable Entity in 16ms (Views: 0.3ms | ActiveRecord: 5.4ms)
- [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.2ms)[0m [1mROLLBACK[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 (17.4ms)[0m [1mTRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;[0m
- [1m[35m (0.9ms)[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 (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